Skip to main content

Questions tagged [entity-framework]

The ADO.NET Entity Framework is a set of ORM (Object-Relational-Mapping) tools for the .NET Framework, since version 3.5 SP1.

1 vote
1 answer
65 views

We have a mid-size project. Two projects in solution, API and Domain. Domain contains services with business logic. We don't use repositories. Just call DbContext directly from services (that's fine ...
user1614543's user avatar
1 vote
2 answers
178 views

I created this save method that has two conditions. One condition is checking if coordinatorsId is not 0 and another one is ...
Jefferson's user avatar
  • 423
1 vote
1 answer
362 views

I was having concurrency issues with my ASP.NET Web API 2 project with .NET Framework 4.6.2. (EF 6), although it has been live on production that has been running for more than 1 year, this problem ...
raysefo's user avatar
  • 267
1 vote
2 answers
176 views

I have this ef 6 delete method where I build <List> the related entities that will need to be deleted. Then I use ...
Jefferson's user avatar
  • 423
1 vote
1 answer
8k views

I want to optimize this code of generate pdf file with many nested loops, what makes it slow that i have for loop with 20 items ...
Coder95's user avatar
  • 143
1 vote
1 answer
200 views

I am creating a .NET Framework MVC EF application for PC components. I wanted to make full use of inheritance, polymorphism and generic repository pattern - but was wondering if my initial design ...
Shaun Falconer's user avatar
1 vote
2 answers
134 views

I'm using C#, .NET Core and the entity framework and am currently working on optimizing various functions for better performance. One of the main functions is getting a calculation based on two ...
RDAxRoadkill's user avatar
1 vote
1 answer
112 views

I am looking for suggestion to make my for loop iterate faster. With about 2000 rows of data. Below code is taking lot of time to run. So far I have followed various Stack Overflow answers. For ...
Jaskaran Singh's user avatar
0 votes
1 answer
2k views

I have been trying to refactor my code since I found I've been doing a lot of copying and pasting to implement the logic of the web API controllers. Here's how the controllers looked like before ...
Youssef Ashraf's user avatar
3 votes
1 answer
1k views

I'm a new self taught "programmer" that has been given the task at my job to parse through generated .txt test records and insert the data into a database. Usually when given a task like ...
Ogg Vorbis's user avatar
4 votes
0 answers
162 views

I have two entities in my database: Employee and Shift. I want to implement a C# repository pattern method, that given two ...
Jens Jensen's user avatar
2 votes
1 answer
127 views

Any advice on how to make this code; cleaner, more effective, just overall better! Program setup object that is coming from the database EF. It then maps the object to a view model and converts ...
Jefferson's user avatar
  • 423
2 votes
1 answer
1k views

I'm porting my site over from .NET Framework / MVC 5 / EF6 to .NET Core 3.1 MVC / EF Core. MSSQL Server for the database. EF6 has SqlFunctions of which one method ...
suraj's user avatar
  • 33
4 votes
2 answers
746 views

I have an api end point which returns the paginated result, the corresponding code for that is as below: ...
testcr's user avatar
  • 41
1 vote
1 answer
137 views

I've implemented Many-To-Many relationship and wonder if this is the optimal way for it. Since I do not have extensive EF Core experience I would love if someone with more experience could check it ...
sed's user avatar
  • 175

15 30 50 per page
1
2 3 4 5
27