Entity Framework 5, separating business logic from model – Repository?
I am working on my first public-facing web application and I’m using MVC 4 for the presentation layer and EF 5 for the DAL. The database structure is locked, and there are moderate differences between how the user inputs data and how the database itself gets populated. I have done a ton of reading on the repository pattern (which I have never used) but most of my research is pushing me away from using it since it supposedly creates an unnecessary level of abstraction for the latest versions of EF since repositories and unit-of-work are already built-in.
Why is it so common to use the dbContext directly in the controller in a WebApi application?
Actually, in a Web API application using Entity Core, it seems very common to inject the application context to the controllers, so the controllers use directly the dbContext to do its work.
Why is it so common to use the dbContext directly in the controller in a WebApi application?
Actually, in a Web API application using Entity Core, it seems very common to inject the application context to the controllers, so the controllers use directly the dbContext to do its work.
Converting T-SQL OUTER APPLY to EF
I been trying to convert this T-SQL code to EF, but I am not having much luck. Any help would be great.
Converting TSQL OUTER APPLY to Ef
I been trying to convert this TSQL into ef but I am not having much luck. Any help would be great.
Use ComplexType in Entity Framework
I’m trying to map a complex type as described in Value objects using Complex Types.
Use ComplexType in Entity Framework
I’m trying to map a complex type as described in Value objects using Complex Types.
How to create multicolumn index with EF by using Fluent API
Is it possible to create a multicolumn index without defining a shadow property in the model by using Fluent API?
Entity Framework – diagram remove field and mapping
I have a development and a production SQL database lets call them dbD and dbP for ease:
Search related table using Entity Framework 6
I have a legacy quote system that has a table for “Quotes” and a related table for “QuoteLineItems”.