Skip to main content

All Questions

0 votes
1 answer
106 views

I am trying to define two classes with the same collection-relation, through the same key on a third class, preferably using EF 6 code annotations. I have three tables; Current is a quick reference. ...
Joachim J's user avatar
  • 204
3 votes
0 answers
47 views

I am setting up an automated integration test environment for a large, existing Entity Framework 6 project that uses a MySQL database. My goal is to create a fresh, empty database schema directly from ...
Jason Hunter's user avatar
2 votes
2 answers
116 views

Still on EF 6 "classic" (not core), when I do something like the following: var basicPersonList = myContext.Persons .Select(p => new PersonSimpleData { FamilyName = p....
lidqy's user avatar
  • 2,494
-2 votes
1 answer
97 views

I have a C# (C# 7.5) application that is using EF6. I have a table that contains two foreign keys. Both are one:one relationships and both are required. When I load a record from the database, the ...
AndyW's user avatar
  • 523
1 vote
1 answer
160 views

I have an Order table that contains a nullable foreign key to another table called Product (each order can only map to one product). Each order will only point to one product. The relation is ...
SyndRain's user avatar
  • 3,932
0 votes
0 answers
65 views

After installing Windows 11 Update 24H2, I have not been able to work with a COM Library developed with C# and accessed from Delphi. The failure occurs when I do a Where filter using a numeric ...
KE50's user avatar
  • 564
-1 votes
2 answers
68 views

I'm using VS2022 and have an ASP.NET MVC project with Entity Framework 6. All Nuget packages are current. I have a data connection InstrumentEntities; in the Server Explorer, I can see all the tables ...
TLamb's user avatar
  • 145
1 vote
1 answer
98 views

I need to map an existing database using Entity Framework 6 in order to read (only) data. The model that bugs me is kind of a TPH inheritance strategy where the child type depends on a discriminator ...
Rémi's user avatar
  • 13
1 vote
0 answers
51 views

I'm working on a .NET Framework 4.6.1 application using Autofac (5.2.0) for dependency injection and Hangfire for background jobs. I have a service class StoreDataCleanupService that depends on an EF ...
Ashish's user avatar
  • 25
1 vote
1 answer
64 views

Using Entity Framework 6 in an ASP.NET Core Web API. I have the following controller: [Route("[controller]/[action]")] [ApiController] public class ContactController : ControllerBase { ...
CoderForHire's user avatar
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,932
0 votes
1 answer
78 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,932
0 votes
2 answers
149 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
238 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,932
1 vote
0 answers
40 views

I have a C# / ASP.NET MVC project using Entity Framework 6. When I am deploying database migrations by running Update-Database -Verbose in the Package Manager Console in Visual Studio, everything ...
Cooper's user avatar
  • 1,370

15 30 50 per page
1
2 3 4 5
749