Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
4 replies
53 views

I’m used to working with a Database First approach in C#. I design my database schema (often with MySQL Workbench) and do a forward engineering, then generate my C# models using Entity Framework’s. ...
alex_pythooon's user avatar
Advice
0 votes
3 replies
44 views

Here's a basic example from the official .NET documentation for a many-to-many relationship using EF and .NET: public class Post { public int Id { get; set; } public List<Tag> Tags { get;...
Arnaud VDR's user avatar
2 votes
1 answer
75 views

I am attempting to backport some code written with Entity Framework Core to Entity Framework 6. I've encountered an issue where EF Core can successfully instantiate a complex DTO (i.e. an object with ...
RotundChinchilla's user avatar
0 votes
1 answer
149 views

I have the following query being generated by EF: DECLARE @__term_0 VARCHAR(7) = 'woodrow' DECLARE @__p_1 INT = 0 DECLARE @__p_2 INT = 15 SELECT [t].[Id], [t].[City], [t].[Contact], [t].[CreatedBy], [...
TheIronCheek's user avatar
  • 1,231
1 vote
1 answer
80 views

I am reading the book C#12 In a Nutshell. The author says: Loading navigation properties When EF Core populates an entity, it does not (by default) populate its navigation properties: using var ...
FluidMechanics Potential Flows's user avatar
1 vote
2 answers
129 views

I am trying to populate a object with additional data from another object with Entity Framework from our data tables. public partial class Maintable { public int Id { get; set; } public int ...
d_88_l's user avatar
  • 47
0 votes
0 answers
44 views

I'm trying to create my own filter for a specific type of data in hotchocolate. I created a class from FilterInputType<MyType> and specified an additional field for filtering in it. For this ...
loloskc's user avatar
0 votes
0 answers
71 views

I have been messing with this for days now and I'm at a loss. I keep getting The instance of entity type 'LineItemHeader' cannot be tracked because another instance with the key value '{id:1}' is ...
Matt Larson's user avatar
1 vote
0 answers
148 views

I am running PG 17.5 Windows using the EDB community distribution. I am using Entity Framework ORM with Devart's dotConnect for PostgreSQL. The issue I am about to describe did not occur under PG 13....
sevzas's user avatar
  • 821
3 votes
1 answer
84 views

I am running the following command to scaffold C# models of an existing database: dotnet ef dbcontext scaffold "<conn string>" Microsoft.EntityFrameworkCore.SqlServer I would like to ...
Red Puffle's user avatar
-2 votes
1 answer
84 views

enter image description here My task is to get a photo from the stream and then save it to local storage and pass the path to this photo to the ViewModel, and then save the path in the database. I put ...
Артур Дементьев's user avatar
1 vote
1 answer
101 views

I'm designing a .NET Core application using EF Core with a MySQL database, following a Table-per-Type (TPT) inheritance strategy. I have a base Report class with several derived types such as ...
Kafkaa's user avatar
  • 81
0 votes
1 answer
208 views

I'm trying to build a .NET 9 project using Visual Studio, and I keep getting the following error: Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1064: The Microsoft....
urtopcuoglu's user avatar
0 votes
1 answer
130 views

This is my table: user_id last_activity_time 1 2025-06-20 11:00:01 2 2025-06-20 11:00:02 3 2025-06-20 11:00:03 4 2025-06-20 11:00:04 Let's say, my input parameter if a user id list: [ 3, 4, 5 ]. I ...
dafie's user avatar
  • 1,189
1 vote
1 answer
88 views

I have grouped orders from the orders table so an order can have one or more purchases of a product with in an order. The problem is that when I purchase a single product that order with one product ...
redoc01's user avatar
  • 2,529
1 vote
1 answer
63 views

A rather complicated object mapping I've inherited uses static Expression<Func<...>> in the .Select call (from my research these seem to be called "Expression Trees", but for ...
C Howell's user avatar
0 votes
2 answers
83 views

How can I convert an EntityQueryable to an IIncludableQueryable? I get this error... Object of type 'Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1[Extenso.TestLib.Data.Entities....
Matt's user avatar
  • 7,015
1 vote
1 answer
153 views

My use case is that I want to retrieve a large number of records from the database and write them to a file stream, e.g. a .csv file. To reduce memory pressure I thought I'd use it as an ...
NickL's user avatar
  • 1,980
1 vote
0 answers
76 views

I have the following 2 tables defined in the DB (follows) with fixed schema, meaning I am not allowed to change it. Some details were omitted for readability: CREATE TABLE [periods] ( [id] [int] ...
Radek Strugalski's user avatar
0 votes
1 answer
63 views

I have a page that lists a bunch of doctors with their specialties, and a drop down list of specialties above it. When you initially open the page, it shows all doctors below the drop down list. I ...
bradd's user avatar
  • 3
0 votes
0 answers
102 views

I have methods used in IQueryable.Select(...) that shares the same logic of mapping an Entity class to a DTO class, but filter the navigation properties in the projection differently. The problem is ...
SyndRain's user avatar
  • 3,907
0 votes
1 answer
61 views

I'm working on an EF project. This is my entity: namespace AnagraficaEF.DA { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System....
MICHELE TROTTA's user avatar
0 votes
1 answer
76 views

I have a query that I want to return an entity with a filtered collection navigation property. According to the EF6 document I should be able to load it via explicit loading. However, after the ...
SyndRain's user avatar
  • 3,907
0 votes
2 answers
143 views

Running NbLinksExpirationStatus takes about 12 seconds to execute, which is not fast enough for what i am trying to achieve. Could it be Contains() problem and is there any way i can make it execute ...
mnol's user avatar
  • 33
1 vote
1 answer
235 views

We have a .NET Framework 4.8 application that uses Entity Framework 6. Now we are having a problem that we need to add some tables that don't guarantee any uniqueness (no primary key and rows can ...
SyndRain's user avatar
  • 3,907

1
2 3 4 5
1837