I am developing a project using Entity Framework 4. Having about 50 objects, basically all the tables are related to the user table. Searching for a user a little more time to return results. In the user table, I deleted the navigation properties, even if you have more time. The web page mainly provides performance recommendations for any given scenario / problem. Is there a common checklist to improve Entity Frame performance?
Find user as dynamically as follows
var searchPredication = (from user in entities.Users where ((searchKeyword == "") || (searchField != "" && searchKeyword != "" && searchField == "BarCode" && user.BarCode == searchKeyword)|| (searchField == "LastName" && user.LastName == searchKeyword) || (searchField == "FirstName" && user.FirstName == searchKeyword))) && !user.IsDeleted select user).FirstOrDefault();
And also I need to provide more information about general performance management in EF.
source share