I try to add a migration for the below entities and i get the error. I've tried everything to get it to work and i feel like i'm missing something obv ...
I try to add a migration for the below entities and i get the error. I've tried everything to get it to work and i feel like i'm missing something obv ...
I am writing unit test case for my Entity Framework Core SaveAsync method. try { // Here add business logic to insert record in to new database ...
I'm trying to config two primary keys for my model using data annotation in entity framework core I tried some solution in the internet but it did ...
In my .Net MAUI project I'm trying to change update my migration. I added a property to my model and did; Add-Migration AddBlogCreatedTimestamp in ...
I'm trying to do an insert of a list of objects. These objects are formed by 2 separate sub-objects, linked by 0 to 1 relation. If I insert one objec ...
What am I missing here? IQueryable<IsActiveCustomerProviderRefDto> search = from customerProviderRef in _database.CustomerProviderRef j ...
I'm using EF Core 6 on .NET 6.0 and am looking at this error: System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property ca ...
I'm trying to understand how EF Core transaction with a lot of inner commands use memory. Let's say I have code like this: MyReader is reading a v ...
I have two entities in a many-to-many relationship and 3 tables: Customer Shop CustomerAndShopAssignemnt (join table) I have list of shops ...
I'm having a trouble configuring May-to-many with TPC inheritance the many to many relation is on the abstract class, the generated tables are Tes ...
I am using Entity Framework in .NET 7. I have 3 entities: Course that contains a ProfessorId among other things Grade that has a CourseId among ...
We have recently upgraded from Oracle.ManagedDataAccess.EntityFramework to Oracle.EntityFrameworkCore (we are on .net standard 2.0). When we connect t ...
How to write EF Core query to fill the properties in certain order? public record PersonDto : BaseDto //Id is Guid { public string Firstname { ge ...
I have below folder structure for each migration in my class library project. How would I get a proper file path with name and run it in Up method of ...
I have an abstract concert type and 3 concert classes inheriting from the base (RegularConcert, Party, ClassicalConcert) , they are all mapped ...
I am attempting to initialize a PostgreSQL database by running existing database migrations for .fmbot. I made an MVCE for the purposes of this questi ...
I want to use same technology to access my database both from ASP.NET MVC and WPF and decided to use EF Core. In ASP.NET I can inject DbContext(UnitO ...
I'm pretty sure I've done this in EF Core 6 and it worked before, but now I've upgraded to EF Core 7 and my datetime values are being translated to '0 ...
I have such EntityTypeConfiguration class. I want to retrieve the column name: "secretID" by using the property DummyType.SecretId as such: ...
how to make bidirectional relationship to work in Entity Framework Core? Dotnet 6 Ef Core 6.0.13 DbContext class Error in Migration ...