This question is locked. New answers and comments are not allowed.
Hi,
i need to implement a generic save function that take care of add or not (that means the entity is already loaded/added) entities to the the context without running a query to test existence. DbCtx.Add(entity) raise an error that I could catch, but is this the only viable method to do that? Is There a method to access entities currently loaded/added to the context?
thank you
best regards
Andrea
i need to implement a generic save function that take care of add or not (that means the entity is already loaded/added) entities to the the context without running a query to test existence. DbCtx.Add(entity) raise an error that I could catch, but is this the only viable method to do that? Is There a method to access entities currently loaded/added to the context?
thank you
best regards
Andrea