Message
From
21/10/2016 08:28:47
Naomi Nosonovsky
Wisconsin
,
United States
To
21/10/2016 08:20:18
Viv Phillips
Hay-On-Wye
,
United Kingdom
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:
01642225
Views:
30
>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.
If it's not broken, fix it until it is.
My Blog
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