is there a way (generic) to check if a object already exists in the database?
ObjectExists<T>( T entity );
//So when you generate a DbContext you have these possibilities...
If( dbContext.ObjectExists<MyDomainClassType>( MyDomainClassType concreteEntity ))
Now I have no ideas to do this in a generic way?! --> maybe you know?
Thank you in advance,