hi all.
Im having issues with my implementation of UI Builder which uses 2 tables. so a one to many relationship. Im using repository aswell for the listview and detailview. however when using the SaveImpl method to save the UI builder item I get this error:
"The instance of entity type 'xxxxxxxx' cannot be tracked because another instance with the key value '{Id: 105}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached."
I've used Entity framework as orm and I pretty much used the default way of attaching it:
builder.Services.AddUmbracoDbContext
((serviceProvider, options) =>
{
options.EnableSensitiveDataLogging();
options.UseUmbracoDatabaseProvider(serviceProvider);
});
can anyone give me any pointers to where i might be going wrong with this?