I'm using EF Core to create a "MenuItem" table, which may be linked to a parent (of "MenuItem") like so ... ParentMenuItemId gets created as NOT NU ...
I'm using EF Core to create a "MenuItem" table, which may be linked to a parent (of "MenuItem") like so ... ParentMenuItemId gets created as NOT NU ...
I have a query that select all Photos if its public, and only if friends if visibility is private in this code. But I trying to extract this piece ...
I have an IQueryable of items (like models created from a data table). I want to write an extension method in which I give a list of filters and this ...
I have the following code: Configured with fluent Api: Creating a Migration works fine but when doing "Update-Database" I get the following erro ...
I Try execute Add-migration but show Error(build successful) The specified deps.json [D:\Projects\Register\Register\Register.deps.json] does not exist ...
Using EF-Core Code First in a new Blazor project. This is the first time I've used the core version of EF so maybe it's something new I missed? I hav ...
I'm trying to create two one-to-one releation from one type to another one. Background: I have a client which sends requests. In a new user story I n ...
Can anybody explain to me why when updating my role when I debug through the code it has the correct Guid for the user and group? This the [dbo].[A ...
I have two models and a ViewModel I filled this ViewModel with this method but PageCount is not work. when run the project is has zero value. ...
Is creating an Interface on DBContext good practice in Entity Framework Core 3.1? Does Microsoft have any documentation on this? We know that Mocking ...
I'm developing a system that will fetch a huge amount of data from another system. I'm inserting this data as batches using EF Core 3.0. I'm looking o ...
I upgraded efcore 2.2 to 5 and simple group by is not working, the data is already in memory, take a look: In Ef Core 2.2 it worked fine, the busin ...
So I want to run EF migrations when the Azure app service is first started. The following code works correctly: However because the database is run ...
I am trying to set up full text search in a .net core 3-web app, using the instructions on NPGSQL website https://www.npgsql.org/efcore/mapping/full-t ...
I am using PostgreSQL on EF Core in .NET Core 3.1. On my local machine, I was able to do Update-Database successfully, which created the database and ...
If a user does something like this inside OnModelCreating: modelBuilder.Entity<MyBaseEntity>.HasDiscriminiator(x => x.EntityType) Outside ...
I am trying to add the Azure Redis Cache to my app. I am trying to do it with the interceptor, so when a query is done if the result is present in the ...
I had a requirement of storing static spatial data with some polygons, I imported GeoJson into my SQL Server to massage secondary data, once I had the ...
I am using EF Core as my ORM. Ideally, I would use SaveChanges/ SaveChangesAsync to insert data into my DB, but there is a scenario where my table doe ...
I want to execute a sql script before each DB operation using EF Core 3.0. One way to do the same is by subscribing StateChange event of DB Connectio ...