Entity Framework Check Object Existence
How to check if an object exists in the database?
What is the best way performance wise to check if the object exists in the database.
StackOverflow Related Questions
Answer
For IEnumerable
using (var context = new EntityContext()) { if(context.Customers.Any(c => c.CustomerID == 1)) { //match } }
ZZZ Projects