python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
What is the equivalent of entityEntry.Metadata.DefiningNavigationName() in EF Core 6?
I am using EF Core 5 and I have the following in my DBContext SaveChanges():
if (entityEntry.Metadata.Name == "ArticleBankAggregate.ArticleTag" && entityEntry.Metadata.De...
Mike Lenart
Votes: 0
Answers: 1
EF Core 6.0 Insert Failure: The database operation was expected to affect 1 row(s), but actually affected 0 row(s)
I am using
SQL Server 2019 Express
Visual Studio 2022
EF Core 6.0
.Net Core 6.0
My database structure:
CREATE TABLE [temp].[REGISTRATION]
(
[id] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[co...
Probir Roy
Votes: 0
Answers: 0
EF Core 6 - How to add AUTO_INCREMENT to a column used by other foreign keys
I have a EF Core Code-First table like:
public class Entity
{
public byte ID { get; set; }
public string Name { get; set; }
...
}
And many other tables with:
public class Others
{
.....
Romulus Urakagi Ts'ai
Votes: 0
Answers: 2
Map entity to multiple tables with Entity Framework Core
I'm trying to implement Temporal Normal Form using Entity Framework Core.
Consider having following entity:
public class Employee
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public...

Stefan Golubović
Votes: 0
Answers: 0