Entity framework core

Run a raw sql query/command via EF Core
There are different ways to run a SQL command/query in Entity Framework Core. 1.DbSet.FromSqlRaw var parentsList = context.Parents...

DbUpdateConcurrencyException when updating an entity
Error Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: 'The database operation was expected to affect 1 row(s), but...

DbArithmeticExpression arguments must have a numeric common type
Error System.ArgumentException: DbArithmeticExpression arguments must have a numeric common type. Code caused the exception ctx.I...

Configure an unique Index in entity framework core
1.Attributes [Index(nameof(Name),nameof(Uuid), IsUnique = true, Name = "SomeIndex")] public class Server { public int Id {...