Questions tagged as 'entity-framework'

1
answer

Keep data in update aspx c #

Dear, I am doing a CRUD with entityframework in aspx c #, when consulting about the user to edit I show the data in several textbox. What I want to do is that if the user deletes a data (in the textbox) and updates the user, in the database the...
asked by 25.08.2017 / 20:36
1
answer

Delete Record LINQ to ENTITY

I try to delete a record in this way: var cSelect = from x in contexto.BloqueoExcursion where x.BLE_BloqueoID == BloqueoID select x; foreach (var item in cSelect) { v...
asked by 11.08.2017 / 01:55
1
answer

Several Request with EF Core in Net Core

I have the following problem. I have a WebApi Rest in .Net Core where I use EntityFramework Core, I make a request and it works very well, the mess is when I make two requests at the same time, apparently it only supports one at a time, if I...
asked by 12.05.2017 / 01:34
2
answers

Linq query does not respond after updating Stored Procedure in EntityFramework

I'm working with EntityFramework 6 , I have my model created (First DataBase) for quite some time. In my project I have some queries with LINQ and others (to optimize times) made with Stored Procedures (SP). It worked correctly until I n...
asked by 20.04.2017 / 17:22
1
answer

EF6 CodeFirst Dsde Database Update Model C #

I have a solution of n-layers, inside which I have separate the DAL of the entities. For this, I am using the model called Code First from Database , which although it works quite well, because it allows me to separate the entities in a diff...
asked by 14.03.2017 / 17:01
1
answer

Problem with entity framework when generating the model from the database

It does not let me select the tables of the model, already verify and the connection is well made, some other solution?     
asked by 10.12.2016 / 21:48
1
answer

as I think dropDownList with Entity Framework in Asp.net MVC

I'm starting a new project and I'm migrating from webForm to MVC and I confess that I miss the best basic questions for some. Well one of those questions is the following, I need to create a dropDownList and the data of this both the ID and...
asked by 26.10.2016 / 17:45
3
answers

SQL query, LINQ

I have the following query SELECT tp.Nombre, tp.IdTipoContacto FROM TipoContacto tp LEFT JOIN Contacto c on tp.IdTipoContacto = c.IdTipoContacto WHERE NOT tp.Nombre = 'Compañia' This brings me back Facturacion 2 Facturacion...
asked by 08.09.2016 / 19:16
3
answers

Query Variable EntityFramework

I want to bring only some fields of what the consultation brings me, var result = dbContext.Cliente.Include("Contacto.Cliente").ToList(); this brings me the following: "Objects": [ { "IdCliente": 3, "Identificacion": 10, "Nombre":...
asked by 02.09.2016 / 22:34
1
answer

Entity Framework Code First

When I work with code first when I have a navigation property and work with Map, is that navigation property just for the code? Another question, my primary key is a ProviderId string, how do I tell EF that my PK is not identity? public cla...
asked by 01.04.2016 / 01:50