Guest User

Guest User

  • Tech Writer
  • 49
  • 6k

Asp.net MVC5 with E.F returns IQueryable or IEnumrable?

Jun 23 2016 2:21 PM
Hi everyone please help me to understand about asp.net mvc5 with e.f 6 is used  IQueryable or IEnumrable by default? I want to work using IQueryable because it is best for underlying database. I am using LINQ to entity approach and var keyword for holding linq results. By default my model classes is of type public <dbset> className {get; set} so here <DbSet> returns  IQueryable or IEnumrable?
kindly help me 

Answers (2)