I understand that my question is kind of confusing because I haven't found a better way to ask it, but I'm sure it isn't a hard problem to solve. Her ...
I understand that my question is kind of confusing because I haven't found a better way to ask it, but I'm sure it isn't a hard problem to solve. Her ...
Say I have a repository which allows my to pass custom expressions to filter on the main object, along with another custom expression that allows me t ...
So imagine you want to access the multiple dbContexts that are on different environments or servers (Dev, Test, Pre-prod etc), and use the data from a ...
I Have this code. It works fine but when I have two same maximal values it appear 2 times. So I need to use OrderBy. But I dont know how. Thanks for a ...
Well, I know that's a lot of questions about, but I didn't found a answer for my problem yet. I have rules in entity classes: class Evento: class ...
I have two table like this : I want to create a report that shows howmuch balance has every customer. my linq query is : this query is ok in lin ...
Foreword: I have 2 projects on .NET Core 3.1, one EF Core 3.1.17 and another on 5.0.10 and in both I've used Include/ThenInclude the same way and all ...
I have an aggregate root in my domain model named Employee. it has 3 list of different domain objects like below: this is the implementation of eac ...
When attempted to run a scaffold command I am now receieving the exception noted below. It may be important to note that this stopped working all of a ...
My models are like this (simplified): DatabaseContext (as shown in documentation here: Many-To-Many): How do I delete element from Request.Tags ...
Simple scenario : . My (shameful) workaround : I'm not bold enough to try this and face unforeseen consequences : Any advice? ...
If only one field is searched, it can be successful. But not two. I want to get sql syntax result. Below is the result I want to achieve. I w ...
I am using Entity Framework Core and I have this model class: This is the code in the context related to ConstraintRule model: Description is a ...
I'm trying to get a list of all unique combinations of make and model and also include the most recent time stamp and the corresponding color from the ...
Every now and then a query throws time out exception. The SqlCommand.TimeOut is set to default 30 seconds. Microsoft.Data.SqlClient.SqlException ( ...
I have an Organization entity table then I have my relational table with a self-referencing parent column When I deploy my db with migration, I ...
I try to map many-to-many relation with data type conversion for private fields. I don't want public properties because I want to be able to add new C ...
I can define a text column collation on Sql Server as follows as shown here in the Ms Doc modelBuilder.Entity<Customer>().Property(c => c.Na ...
I have nullable enabled in VS2022. I don't see what the valid resolution to this nullable warning is. Changing userRef.UserId to user ...
I have an entity named User and a value object named UserRef containing OrganisationId. EF is picking up the UserId on the UserRef and trying to map ...