I am using entity framework code first. My entities and controller were generated by Visual Studio and have not been modified. This issue seems to be that the
I'm using Entity Framework to call a stored procedure which takes 2 minutes to execute. As a result, I get a timeout exception. Is there any way I can use my
We've created a Web API using .NET Core 6 and EF Core 6. In development environment all works good but when I do the publish application fails with an error Sy
I have a query using Entity Framework. It has many different operands and I am confused with its priority. I am getting the wrong result. I need all records tha
I am testing on a real device(Redmi 7A) when I open Camera ,URL,GPS, app always get error "Lost connection to device." but when i test on Samsung m31 or Samsung
I'm working on ASP.NET Project with .NET 5.0. For Database creation, I've run the command dotnet tool install --global dotnet-ef After the installing, when I
I have a search screen with optional fields using Entity Framework, I want to build a dynamic query without selecting the object and filter on it. I want to Op
It is clear how to query an entity and include all the related data; e.g.: using (var context = new BloggingContext()) { var blogs = context.Blogs .
I know you can do something like var myObj = _db.MyTable.FirstOrDefault(x=>x.Id==id) and then update myObj property by property that you want to update but i
I have a Service Object Update public bool Update(object original, object modified) { var originalClient = (Client)original; var modifiedClient = (Cli
I am using Microsoft.EntityFrameworkCore.SqlServer 2.2.6. I have a stored procedure which typically takes 1 to 2 seconds to execute. I am using .NET Core 2.2 wi
In database I have next model tblWorkItem with next field: public List<xWorkItemItemFailReason> WorkItemItemFailReasons { get; set; } When I am trying
I have added a new column to a table in my database. The table is already defined in the existing Entity Framework model. I've been through most of the items he
I'm trying to convert an IQueryable to IQueryable to allow me to take advantage of the dynamic filtering offered by Linq in the EntityFramework context. I'm try
I am trying to scaffold and I get the following error: There was an error running the selected code generator: 'No parameterless constructor defined for typ
I need to get all tables in the database using EF. I need them to go table by table and extract certain information from each. Any idea how?
Here is the code that produce this error. I've tried solution for renaming the AddForeignKey but the error is same. 'PK_dbo.Item' is not a constraint. Co
I am trying to bulk update records using Entity Framework. I have tried Entity Framework.Extensions Update method. The Update method is able to bulk update for
When attempted to run a scaffold command I am now receieving the exception noted below. It may be important to note that this stopped working all of a sudden. C
I set composite primary key using fluent API, it is still an error, when I'm trying to create ClassesController (MVC Controller with Views Using Entity Framewor