Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [entity-framework]

For questions about Entity Framework for .net framework, max. version 6.4, December 2019. Use [entity-framework-core] for current .net (core) versions. Then also please add a version-specific [ef-core-xx] tag.

0 votes
0 answers
20 views

Strategy for handling multiple EF Migrations

I need help formulating a strategy for handling situations where two or more team members create an EF migration independently and for different reasons. Every single time we've had this scenario so ...
Captain Kenpachi's user avatar
0 votes
1 answer
36 views

Why installation of dotnet-ef fails even if --ignore-failed-sources is specified

I'm building a .NET 6 project via Azure DevOps Pipelines. One of the step is to install the Entity Framework tools so a later step can generate a SQL migration script. However, the installation step ...
alik's user avatar
  • 2,324
0 votes
0 answers
20 views

Could not able to download the HTML content as PDF in ASP.NET Web API

I have designed a html in the C#, on .NET and using Entity Framework., I have a PDF documents which are stored base64 encoded. I should be able to get the full html string after this I am downloading ...
Vijaya Aradhya's user avatar
1 vote
2 answers
32 views

Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type: decimal SSN, string FullName>>' to 'System.Collections.Generic.List<>

I got this error when I tried to make a method to return all users which have no users CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type: decimal SSN, ...
Mohamed Fahmy's user avatar
0 votes
0 answers
42 views

Populate a many to one relationship and how to show data input only once but increment if the date in the input are the same

I am currently working on a web project that required user to input a group of value for each person in a department per day then display it in two other index for day and month. I'm having problems ...
Trung Đặng Đức's user avatar
0 votes
1 answer
32 views

EF Core: what exactly is the command timeout measured on?

I was previously downloading via EF millions of records without encountering any timeouts, however, after adding a WHERE clause to limit the download to only a few thousand records, I am frequently ...
whatever's user avatar
  • 3,335
1 vote
0 answers
23 views

Oracle 11g and EF Core 8 two similar servers one throws an error "OracleException: ORA-28040"

Looking for some help/advice. I have two Oracle 11g servers call them "TEST" and "PROD". When I run my project it connects fine to "TEST" but when trying to run it with &...
Koala163's user avatar
0 votes
0 answers
39 views

Multiple JOINs is extremely slow on SQLite

I'm using EF Core with SQLite. For the MCVE, let's say, I only have these tables [DomesticContainers, DomesticRecords, InternationalContainers, InternationalRecords, Clients], where there's a one-to-...
ICloneable's user avatar
0 votes
0 answers
26 views

Problem with concurrency while updating data in DB using Quartz .NET and EF Core

I want to introduce horizontal scaling instead of vertical in my app. Now we are using Quartz .NET for background tasks, but in non-clustered mode, just 1 instance. So I found ability to do horizontal ...
Ihor Arkhypenko's user avatar
0 votes
0 answers
48 views

Connect Timeout expired. Unable to connect to any of the specified MySQL hosts

I'm trying to deploy my api inside a docker container. It was working perfectly but I changed the mysql server parameters and it started giving me the following problem. Does anyone have any idea what ...
Raudel Chavez Arroyo's user avatar
0 votes
0 answers
33 views

Entity Framework save changes from different Task<T>

My application has two concurrent tasks: await _fileWatcherService.StartWatchingAsync(); var backgroundTask = Task.Run(() => ProcessQueueAsync(cancellationTokenSource.Token), ...
federico's user avatar
0 votes
0 answers
11 views

EF Core 8 - Database Update -> Unable to create a 'DbContext' of type

I am creating my database via code first. I can do a database add migration without errors, but when I am calling: dotnet ef database update --project .\BKR.DB --startup-project .\BKR.Web --context ...
Jan Gravgaard's user avatar
0 votes
0 answers
31 views

Cannot run: dotnet ef migrations on .NET version 8.0.7

I am trying to run an Entity Framework migration using the latest version of .Net (8.0.7): dotnet ef migrations add UpdateJob but I get this error: You must install .NET to run this application. App:...
Radu M.'s user avatar
  • 1,351
0 votes
1 answer
38 views

EF Migration bundle not packaging migrations

I'm sure I'll figure out what is wrong after posting this but here goes. I'm trying to get an EF Migration bundle going in my devops pipeline so I can deploy updates/changes to my db with my CD ...
Adrian's user avatar
  • 3,422
0 votes
1 answer
35 views

Entity Framework: does Select after OrderBy still guarantee ordered projections?

Let's say I have an Entity Framework 6 query which looks like this: var orderedPayInfoes = context.Employees .Where(x => x.EmployeeId > 5) .OrderBy(x => x.CreatedOn) ....
johnny 5's user avatar
  • 20.7k

15 30 50 per page
1
2 3 4 5
6125