Problem : i am pretty new to the repository design pattern and i have reached a dead end while trying […]
Tag: entity-framework
How to specify SQL Server XML data type in Entity Frameworks 4.0 Model?
Problem : I’m building an ORM using Entity Frameworks 4.0 (CTP5) in the Model-First pattern. A few of my entities […]
SQL column default value with Entity Framework
Problem : I am trying to use Code-First EF6 with default SQL values. For example, I have a “CreatedDate” column/property […]
Entity Framework – Eager loading related entities
Problem : I’m using Entity Framework 4 with MVC and need to ensure any referenced entities I want to use […]
How to use EntityFramework.BulkInsert?
Problem : I’m trying to use EntityFramework.BulkInsert located at http://efbulkinsert.codeplex.com/. It’s an extension for Entity Framework. I installed the proper […]
best practise/way for master detail / multi table Insert in Entity Framework
Problem : My table structure is this Orders —— Id int identity OrderDate smalldatetime OrderStatusid tinyint Products ——– Id int […]
Linq Query keeps throwing “Unable to create a constant value of type System.Object….”, Why?
Problem : The following is the code sample: private void loadCustomer(int custIdToQuery) { var dbContext = new SampleDB(); try { […]
Configuration Error related to targetFramework in web.config
Problem : I have made an MVC website in Visual Studio 2015 and it works in my localhost. But when […]
Is there a way to programmatically check pending model changes in Entity Framework Core?
Problem : I am currently in the progress of setting up a team environment for ASP.NET Core WebAPI development, using […]
How do I extend IdentityRole using Web API 2 + AspNet Identity 2
Problem : I am attempting to extend the AspNet IdentityRole class provided in the Web API 2 (With Individual Accounts) […]