Im working on a website as a leaning tool and have run into an issue where entity framework fails to set the database initializer. This is the error I ...
Im working on a website as a leaning tool and have run into an issue where entity framework fails to set the database initializer. This is the error I ...
I am new in Entity Framework and I have a little question. Is it possible to compare in "Where" with a number. I will add code example. So, I need ...
I tried to create database using TPT. I have nine entities but when i launch DbInitializer its give me following exception "System.InvalidOperationEx ...
I am working on a Web application which uses Entity Framework 4.1.10331.0. I have made couple of changes in DB and now I need to update the model (En ...
I have a One-to-Many relationship as shown below - the child in the relationship is soft-deleted and the string foreign key is non-nullable/[Required] ...
I've got some working code here but I'm really concerned that it's not efficient - but I can't think of a way to improve it. Any thoughts? We have IQ ...
This might get closed for a possible duplicate of this: The type of one of the expressions in the join clause is incorrect in Entity Framework But I w ...
I have a large number of stored procedures to work with and I have to work with Entity Framework. I got for example this controller where I'm just ca ...
We have defined a base class as Deriving all other classed form this Base schema. Sample class is After adding HoodAudit in datacontext class an ...
This post is going to be riddled with problems. I know we do EF wrong. I know the way we do EF is abominable. Now that that's out of the way: We have ...
I have a classLibrary Project(. Net Framework 4.6.1) namely 'EmployeeDataAccess', it contains an ADO.Net Entity Data Model (.edmx) configured successf ...
When I try to run the above statement, I get the following error: The specified type member 'Date' is not supported in LINQ to Entities I tho ...
I'm developing a multi-tenant based application that will have a separate database for each school/tenant. Each schema will be identical to each other ...
I have a data context using two SQL tables ( A and B) that are queried using the following code: The Flag column resides in the table A. I want to ...
In order to performance, exception capturing and etc., What are the differences between these two codes: The direct code: ...
i am creating web api and using entity framework database first approach and using the stored procedure. stored procedure returning the result column ...
I am trying to execute my stored procedure which takes 13 parameters and some can accept nulls and some are always required. I am getting an error for ...
This is truly one of the strangest issues I've run into. I have a Web API which uses EF. I have an audit table which takes an ApplicationUser. I cre ...
I'm upgrading an old MVC web application from EF4 to EF6 (and MVC3 to MVC5) using a guide i found on SO. Functionally appears OK, but I've noticed p ...
For update using entity frame work , I have a DTO exposed to user with all properties but few properties are assigned with values. Example Now Th ...