Questions tagged as 'entity-framework'

0
answers

How to create child objects from a parent class in Asp .Net MVC

Greetings, I am trying to make a system of people registration, where a person can have several documents, I would like to know how I can create the documents when creating the person. Let's say that my Models are this way. public class Per...
asked by 17.07.2017 / 21:24
1
answer

Procedures stored in Controller Entity framework

I have a stored procedure that edits a record, the date field is with getdate() , I'm trying to use that procedure in my controller but I get an error.    No argument corresponding to the formal parameter has been given   required a...
asked by 23.06.2017 / 17:17
0
answers

Send Several Invoice Details from the view to the controller

I need I have several invoice details in my view and I need to send those details to the controller to save them: View: (I have two Details like this :) <tr id="Registrodeproducto"> <td>...
asked by 15.06.2017 / 23:04
1
answer

Pass id in a modal ionic Framework v1

hello good afternoon I find the following problem I have the following list that is loaded with a json object, which to each element I have attached a button to edit and remove <div class="item item-divider bar bar-dark" >Listado de Pedi...
asked by 20.06.2017 / 17:34
2
answers

Error using helper DropDownList

I have a database with sites, which I retrieve to save them in a database of billboards. I use DropDownList to recover the values, but when I try to save, it says:    Server error in the application '/'. There is no element   ViewData of type...
asked by 30.06.2017 / 22:21
1
answer

How to relate a model to ApplicationUser

I can not find how to relate my client model with ApplicationUser, I want a one-to-one relationship. Someone knows where the error is: public class ApplicationUser : IdentityUser { public virtual Cliente Cliente { get; set; } publ...
asked by 20.06.2017 / 22:50
0
answers

Validations with Data Annotations in the Entity framework do not work

I have a form made in Asp.NET MVC using Entity framework for persistence and using Data Annotations to validate the fields. The problem I have is that the validations do not work, I want to put fields with null value, I want to save the fields a...
asked by 12.06.2017 / 19:01
1
answer

Insert Data Error EntityFramework Core

Sorry if the question is very obvious but I'm new to the subject and looking in Google I can not find anything about what happens. I have the Next entity. public class Equipo { public int Id { get; set; } public string S...
asked by 09.07.2017 / 02:38
1
answer

Error saving fields in a form

I have a form made in MVC ASP.NET, using Entity framework for persistence. I try to save the data, but when I click save, Visual Studio throws me an exception in the line ctx.Empleado.Add(em); of the Create action. Then when I click conti...
asked by 30.05.2017 / 18:32
3
answers

WCF-Problem when implementing method with Entity Framework

I am developing an application in WCF. I have created a service and I need to implement a method that returns a list from a query to the Entity Framework by joining several tables with joins. I do not know if I'm doing well This is the code:...
asked by 04.06.2017 / 19:02