Questions tagged as 'entity-framework'

2
answers

EntityFramework does not update some fields

I have a problem with EntityFramework-6, I am trying to create a "disconnected" entity to simply save the changes of the fields that I want. My context (DataContext.cs) has a member named Demos, and that entity type (Demo.cs) is derived from...
asked by 25.05.2016 / 01:08
1
answer

Queries with entity framework

I need to make a simple query in a login. The query would be to see how many employees are registered, if there are no registered employees show a message and then register it. thanks public partial class WPF1_Login : MetroWindow { S...
asked by 05.12.2018 / 21:10
2
answers

Validate Deletion of Related Records MVC Entity Framework

I am new to MVC, I want to know how I can validate that at the moment of deleting a parent record I am shown a message that tells the user that it can not be deleted because of the relationship with the child records. I have a validation in t...
asked by 05.12.2018 / 03:52
0
answers

Show a DropdownList in an MVC C # view using Entity Framwork-

I am trying to show a dropdownlist, of an entity that I have in my model, for that I used entityframework database first. Code in my view: <div class="col-md-10"> @Html.DropDownListFor(x => x.Nivel.NivelID, new Sele...
asked by 28.11.2018 / 14:39
0
answers

Pass data from one view to another view MVC 5 Entity framework 6 sql server

I have a view where I load the information of what I call an initiative which is linked to a Tleads table, this is the view. <br /><br /><br /> <div class="panel panel-primary"> <div class="panel-heading">...
asked by 26.11.2018 / 19:21
0
answers

Because Include does not bring the users with whom it is related, only the accounts

Good day I currently have three tables for the subject (Subject), user and the relation materia_usuario (Enroll_Teacher_Subject). I am making a query in the controller in which I want to show me the subject and the relations with the table mater...
asked by 19.11.2018 / 15:41
0
answers

Problems with the Entity Framework

Good morning, I have the following error when saving the data of a form in the Database. I work with C # and WPF. This is the exception: System.Data.Entity.Validation.DbEntityValidationException: 'Validation failed for one or more entities....
asked by 22.11.2018 / 13:32
2
answers

As I add a list in a relationship many to many entity MVC5

I try to add a list of subCategories from a book to a book the models: public partial class Libro : Entidad { public string Titulo { get; set; } public string Autor { get; set; } public string ISBN { get; set; }...
asked by 07.11.2018 / 21:05
1
answer

Error synchronizing oracle database with entity framework

When updating the database model so that it takes changes to the schema of the database, it shows me this error:    An exception of type 'System.ArgumentException' was thrown when trying to update from the database. The exception message is:...
asked by 23.10.2018 / 11:02
0
answers

IIS Parse Error with entity framework

What I want to do is upload my web project that I created with entity framework, locally the project works without any problem but when I upload it to the server I get the following:    Error Message Nonconceptual Schema node to embed as a re...
asked by 10.10.2018 / 01:28