Posts by Apolo • 95 points
3 posts
-
7
votes3
answers233
viewsQ: nullable on the models?
What is nullable for in a model? For example: public int? ProjectId; If I put it this way I’m accepting null values, right? And if I put the required Annotation in the property, being required it…
-
1
votes3
answers206
viewsQ: Context in services and repositories
In the company we work, we use Asp.net mvc divided into 2 projects: web - (groundwork) service - (business rules) In several places I have noticed other programmers using the direct context (that…
-
1
votes1
answer152
viewsQ: Load records from different tables as Anonymous type Entity framework
How can I load data from multiple tables in the Entity Framework? By RAW Query I get normal, but by the Entity Framework I’m not getting to the point. What I need is to select the last entry that…