793 questions with Developer technologies | .NET | Entity Framework Core tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

General Question about MVC Core View reload Behavior

Just a basic question, and lets say the following is done on purpose: The app loads a view with a custom layout, images, and a button The user clicks the button, one image changes, and then the same exact view gets loaded again. Does the app truly…

Developer technologies | .NET | Entity Framework Core
asked 2026-02-26T00:05:47.1233333+00:00
Corey Fleig 430 Reputation points
commented 2026-02-27T02:35:41.1833333+00:00
Jack Dang (WICLOUD CORPORATION) 14,340 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

How to update only half the record in MVC Core

If I have a class with 5 fields, and I pass the record to the view, what if I only want to change/edit 2 out of the 5 fields? I could display all 5, and make 3 read only. That will work. Is there a way to just display the 2 fields for editing? When I…

Developer technologies | .NET | Entity Framework Core
asked 2026-02-24T02:02:07.84+00:00
Corey Fleig 430 Reputation points
edited a comment 2026-02-25T03:03:17.22+00:00
Jack Dang (WICLOUD CORPORATION) 14,340 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Question about the internal workings of the AddRange() function in tables with collations different from the EF Core standard

We use EF Core in our .NET API and have a database with ID fields configured with the "Latin1_General_CS_AS" collation. I recently encountered a problem where, when trying to perform an operation using the AddRange() function (on a table with…

Developer technologies | .NET | Entity Framework Core
asked 2026-02-11T21:22:14.7666667+00:00
Jair Brann Junior 20 Reputation points
accepted 2026-02-11T23:57:31.8233333+00:00
Jair Brann Junior 20 Reputation points
3 answers

How does EF core tools find my DbContext from my application to generate migration etc

I asked copilot this question, about how EF Core Tool loads my app dll and execute DI service registrations, including builder.Services.AddDbContext(..), then getting my DbContext from DI. In Minimal API program. It answers this: Got it — you’re asking…

Developer technologies | .NET | Entity Framework Core
asked 2025-11-24T11:05:29.0266667+00:00
Chinzorig Batsukh 11 Reputation points
recommended 2026-02-04T10:05:00.2666667+00:00
Ana M 0 Reputation points Moderator
2 answers

How can i convert my .NET Framework 4.8 (x86) to .NET Core 8 (x64)

Dear Team,   I have migrated my WinForms application from .NET Framework 4.8 to .NET Core 8. Previously, it was built for the x86 platform, but I want to change it to x64. I have updated the configuration in the Configuration Manager and modified the…

Developer technologies | .NET | Entity Framework Core
asked 2025-12-11T04:29:28.8+00:00
Drusti Kumar 20 Reputation points
commented 2025-12-19T13:33:10.9766667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 4,605 Reputation points Microsoft External Staff
3 answers

Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded.

I am using DDD architecture and the following code changes the aggregate Root (basically adds a comment which is an Entity to the aggregate Root). public sealed class AddCommentToPostCommandHandlers : ICommandHandler<AddCommentToPostCommand,…

Developer technologies | .NET | Entity Framework Core
SQL Server | Other
asked 2024-11-24T08:29:09.3733333+00:00
Arman Espiar 1 Reputation point
answered 2025-12-08T02:26:52.6433333+00:00
Marthin Orellana Maldonado 0 Reputation points
2 answers

.NET entity framework asp.net showing the following react issues ? how to resolve

Hi Everyone (SME), i am facing following 2 issue while building the web pack which is used to run asp.net with react js application i am using node js version 14.21.3 ERROR in ./node_modules/react-draggable/build/cjs/Draggable.js 210:22 ERROR in…

Developer technologies | .NET | Entity Framework Core
asked 2025-11-28T17:53:57.0833333+00:00
srinivas999 0 Reputation points
commented 2025-12-05T12:14:15.3633333+00:00
Gade Harika (INFOSYS LIMITED) 2,590 Reputation points Microsoft External Staff
4 answers

Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.AdHocMapper'

I'm using .NET 8.0, Entity FrameworkCore 9.0.2, MySql.EntityFrameworkCore 9.0.0 and when I try to get data from the database I get the following error. How to resolve this problem? System.TypeLoadException: Could not load type…

Developer technologies | .NET | Entity Framework Core
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Other
Developer technologies | .NET | Other

Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.

4,163 questions
asked 2025-02-18T09:23:05.2533333+00:00
Misha Kurytsia 0 Reputation points
answered 2025-11-20T23:38:16.31+00:00
can kucukgultekin 330 Reputation points
2 answers One of the answers was accepted by the question author.

HasDefaultValueSql("getutcdate()").ValueGeneratedOnAdd(); not working as expected

I configure my model as follows: public class CampaignConfiguration : IEntityTypeConfiguration<Campaign> { /// <inheritdoc /> public void Configure(EntityTypeBuilder<Campaign> builder) { builder.HasIndex(new[] {…

Developer technologies | .NET | Entity Framework Core
asked 2023-03-19T18:40:51.34+00:00
David Thielen 3,226 Reputation points
commented 2025-11-15T16:12:42.82+00:00
Soumyadip Majumder 225 Reputation points
1 answer

Graph API RevokeSignInSessions not invalidating refresh tokens

I am trying to use MS Graph RevokeSignInSessions to invalidate a user's refresh tokens to enforce the user to login when the existing access token expires. I set the lifetime of access token to 5 mins. In my tests, when the request completes…

Developer technologies | .NET | Entity Framework Core
asked 2025-10-23T13:00:01.73+00:00
Dongyang Li 0 Reputation points
commented 2025-11-13T08:53:23.7733333+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,955 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

what I need to update to win-11 pro?

I wish to upgrade to win-11 pro. My sys: MB, Gigabyte MA785GM-US2H Processor: AMD phenom 11x4 965, 3.40ghz Ram: 4.00 GB, 3.25 GB usable, 800mhz Graphics card: NVIDIA GeForce GT 730 (2 GB) System: 32-bit operating system, x64-based processor Edition:…

Developer technologies | .NET | Entity Framework Core
asked 2025-11-07T02:34:19.49+00:00
my computer 20 Reputation points
commented 2025-11-07T02:46:45.6633333+00:00
my computer 20 Reputation points
1 answer One of the answers was accepted by the question author.

System.InvalidOperationException: 'The LINQ expression => EntityShaperExpression:

var searchs = new List<string> { "a1", "a2", "a3" }; var result = db.Products.Where(p => searchs.Any(s => p.Content.Contains(s))).ToList(); my query like that run ok in asp.net mvc 5 (vs 2019) but when i use vs…

Developer technologies | .NET | Entity Framework Core
Developer technologies | ASP.NET | ASP.NET Core
asked 2023-07-14T07:32:31.3533333+00:00
Tam Luong 20 Reputation points
answered 2025-10-29T06:58:48.4866667+00:00
Kathy Botlar 0 Reputation points
2 answers

Learning EF - Error running Scaffold-DbContext

I am learning how to user Entity Framework where the models are built from an existing SQL server. I ran this command in the package manager: Scaffold-DbContext “Server=xxx; database=Contoso; user id = cnnxxxxx; password = xxxx”…

Developer technologies | .NET | Entity Framework Core
asked 2023-02-07T22:47:49.0433333+00:00
Stephen Ng Qui Sang 10 Reputation points
answered 2025-10-09T13:29:09.2466667+00:00
Thomas Brausendorf 0 Reputation points
2 answers One of the answers was accepted by the question author.

calling stored procedure using entity framework core is throwing error

I am trying to call a stored procedure in my Visual studio application. I am using Entity Framework core. The stored procedure is returning two columns: ID and Type. below is the test result ID Type 1 Basic 2 Test 3 …

Developer technologies | .NET | Entity Framework Core
asked 2025-09-26T03:02:22.23+00:00
Anjali Agarwal 1,591 Reputation points
accepted 2025-09-27T03:25:31.74+00:00
Anjali Agarwal 1,591 Reputation points
1 answer

Command prompt core8 windows 8.1 prompt services adb and serial code product properties

Purchased Core8&Windows 8.1 let's get my system up to date and finish leaving Microsoft let's do this without arguments or preventions money was spent and money is to be held up to contract codes of property rights values and anti theft and copyright…

Developer technologies | .NET | Entity Framework Core
asked 2025-08-31T21:37:57.6566667+00:00
Diamondsoft 0 Reputation points
commented 2025-09-26T09:23:37.4966667+00:00
Adiba Khan 2,265 Reputation points Microsoft External Staff
1 answer

Cannot Migrate Database

Hello all, I am having issue updating the migration of my database. I am currently using .NET 9.0. I have modified one of my files to include the following: protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( …

Developer technologies | .NET | Entity Framework Core
asked 2024-09-16T16:17:42.4466667+00:00
PocketPixie 21 Reputation points
commented 2025-09-23T11:10:20.4966667+00:00
Batool Obeidat 0 Reputation points
2 answers

Can I load CLR (.Net 4.72) and the CorCLR(.Net 8) in the same native process?

Given a native process in windows, can it load both the CLR and the coreCLR ? More Details on the scanrio: Given: 1- A native process ConsoleApp1.exe. 2- Managed C++ /CLR dll (.Net 4.72) , myLib1.dll 3- A COM object which is implemented in .Net 8.0 ,…

Developer technologies | .NET | Entity Framework Core
asked 2025-08-18T14:40:12.0833333+00:00
Yamin Hijazi 0 Reputation points
commented 2025-09-03T06:13:52.1066667+00:00
Gade Harika (INFOSYS LIMITED) 2,590 Reputation points Microsoft External Staff
5 answers

SQLAzure is not available for your selection of subscription and location

Hi Folks, Trying to use Azure for the first time, I'm using a normal account (i.e not free tier or student) but it is just for a hobby project. I'm following the tutorial here in order to deploy my EFCore webapi…

Developer technologies | .NET | Entity Framework Core
Developer technologies | ASP.NET | ASP.NET Core
asked 2023-01-22T08:33:29.6833333+00:00
Gary Frewin 25 Reputation points
commented 2025-08-24T10:58:10.1166667+00:00
SÁRA PETRES 0 Reputation points
1 answer

Frame work error

I am using VS build task but failing with following error ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1259,5): Error MSB3644: The reference assemblies for…

Developer technologies | .NET | Entity Framework Core
asked 2025-08-01T04:56:26.2066667+00:00
tarun k 635 Reputation points
commented 2025-08-22T11:56:38.3633333+00:00
Adiba Khan 2,265 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project

Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…

Developer technologies | .NET | Entity Framework Core
Developer technologies | .NET | Other
Developer technologies | .NET | Other

Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.

4,163 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 70 Reputation points
edited a comment 2025-08-08T09:59:59.5966667+00:00
Claudious Neol Manuel 0 Reputation points