Message
From
21/10/2016 08:34:24
Viv Phillips
Hay-On-Wye
,
United Kingdom
To
21/10/2016 08:28:47
Naomi Nosonovsky
Wisconsin
,
United States
General information
Forum:
ASP.NET
Category:
Entity Framework
Title:
Re:
Why this query just select everything from the Countries
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01642163
Message ID:
01642227
Views:
28
Likes (1)
Naomi Nosonovsky
>>What's GetAll() ?
>>
>I got pointed out to this thread
>
http://stackoverflow.com/questions/16530959/entity-framework-5-get-all-method
>
>It was
>
>IEnumerable <T> GetAll() > { >
return
_dbSet; > } >
>I've just changed it to IQueryable in the base classes. Now I'll have to fix all application errors due to this change.
Changing to IQueryable should fix your problem - shouldn't think you'll find many side effects
Previous
Next
Reply
Map
View the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only