Questions tagged as 'entity-framework'

2
answers

Do not fill my datagriview with linq

As a result of my first consultation in this forum, I was suggested to use EF, I am actually learning and it saves me a lot of time in terms of entities, but now I have this problem. I have 4 Data Layers, Entity, Business and Presentation....
asked by 12.09.2017 / 07:10
1
answer

DBContext SaveChangesAsync waits and does not continue

I have a webapi assembled with the repository pattern and work unit and I need to make an asynchronous save but I do not get it. In my service layer I have the following: List<Task> guardadosAsincronos = new List<Task>(); while...
asked by 16.10.2017 / 10:15
2
answers

Error removing tuples from a table plus an intermediate

I have 3 tables, NOTICIA , NOTICIA_FOTO (middle table) and FOTO , and I need to delete rows from table FOTO ; and since said table is associated with the intermediate table NOTICIA_FOTO , also delete rows from that...
asked by 21.01.2016 / 14:59
3
answers

Error saving data in SQL Server

I have been struggling with this problem for several days to see if they could give me a little help. I have this error:    "Unable to insert the NULL value in the 'CODE' column, table   'C: \ USERS \ MAICOLODALIS \ DOCUMENTS \ VISUAL STUD...
asked by 18.04.2016 / 07:28
3
answers

Check latest registration through linq

I have to get the most updated record from the following table for the most recent record query (the most recent date) I have the following sentence contexto.Set<Tabla1>().LastOrDefault(x => x.Id_Registro == idRegistro); i...
asked by 22.03.2017 / 14:00
2
answers

Better performance in consultation with BD Oracle

I am interested in finding a way to have a better performance in this scenario:    I have N stored procedures that must return the result of queries ( Select * from ... ).    These stored procedures are mapped with the Entity Framewor...
asked by 10.10.2016 / 16:37
1
answer

Where to place my DbSet in my project with Entity Framework?

Well this may be a silly question but I would like to know how other people who use this framework work. I am new using these technologies, I am using Visual Studio with ASP.NET MVC 5 and Entity Framework and I have just started a new project, I...
asked by 08.07.2018 / 06:18
1
answer

error when returning a generic list linq

I have the following problem, when returning a list generated in a method for a viewbag it throws an error to me at the moment of the return, I put the image to them so that they see where the error throws me public List<Card> GetCar...
asked by 16.04.2018 / 17:03
2
answers

ASP.NET MVC5 How can I create a CRUD for the AspNetUsers table

How can I create a CRUD for the AspNetUsers table, creating a MVC 5 controller with views using Entity Framework This is the structure of the table: AspNetUsers This is the Model: IdentityModels namespace Portal.Models { publi...
asked by 04.05.2016 / 02:03
1
answer

Error executing: Unable to load the file or assembly

Hello to execute the project with which I am after solving various problems, now we execute this error ..    Unable to load the file or assembly 'EntityFramework, Version 4.4.0.0 or one of its dependencies You could help me out than...
asked by 06.02.2018 / 11:18