Hi All,
I am using EF 6.
I am using LINQ to Entities for database operations.
If I need to fetch the data from database (with making joins in tables or without join) I can do something like below.
DBEntities db = new DBEntities();
var data = db.myTable.Where(m => m.status == true)
.Select(n=> new { n.col1, n.col2}).ToList();The same work I can do by first making stored procedure then use that stored procedure in EF.
Which one is better? Is there any performance difference?
Please suggest.
Thanks