c# entityframework code DbContext.Add does not seem to be inserting non-key columns. why?
This code is EntityFramework Code on .NET-8.
expt_table consists of a key and non-key column.
On an empty table, tried to do DbContext.Add of a single record.
c# entityframework code DbContext.Add does not seem to be inserting non-key columns. why?
This code is EntityFramework Code on .NET-8.
expt_table consists of a key and non-key column.
On an empty table, tried to do DbContext.Add of a single record.
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 far, it completely messed up the DB snapshot as well as on occasion the migration too. Our migrations are more complex than the normal boilerplate since it contains seed data and some other things I can’t discuss. But in essence what happens is that when we have two or more migrations, there are always merge conflictsin our snapshots and no clear path to resolve them.
.Net IEnumerable what is it exactly?
I’m trying to understand what an IEnumerable<> is exactly.
I had thought it was just an interface saying the underlying data structure has these methods eg first() etc.
EF Core 6 & SQL Server & .NET 6 : navigation property error
I try to migrate from NHibernate to EF Core. I added a repository pattern and migrate repo per repo. No I run into problems with navigation properties.
EF Core 6 MSSQL .net 6 navigation property error
I try to migrate from nhibernate to ef core. I added a repository pattern and migrate repo per repo. No I run into problems with navigation properties.
Unintended Joins between Inherited Classes With EF-Core
When having a class inherit from another class with EF-Core, this causes automatic mapping between mappings where no relationship should exist.
How do I test the output script generated by custom MigrationBuilder extension in EF
Alright, let me see if I can explain this right without sharing out the code I have.
Is it possible to get a reponse body with an object inside JSON? .Net, C#
I created a model called “Sale”. It has foreign keys such as: “idPerson”, “idCar” and “idReseller”.
But in GET method response body, I receive this structure of response:
C# EF adds random column in query on SaveChanges()
For some reason EF adds column to insert query. That column didn’t ever exist in my model, anybody has more info about this?