Questions tagged as 'entity-framework'

0
answers

Query with Entity Framework

Good morning, I am developing an application in ASP.NET MVC C # that calculates the overtime of an employee, I need to make a query that allows me to be able to bring the data of a table called MarcacionesBiometrico strong> which is where...
asked by 25.11.2017 / 16:24
1
answer

select from 2 combobox and show data in textbox

I'm working on an application and getting stuck on something I do not know how to do it. What I want to do is the following but with Entity Framework without using Ado . public void seleccionar_med() { SqlConnection con1 = new...
asked by 27.10.2017 / 13:22
0
answers

Problem when creating a "New element with scaffold" in asp.NET MVC

Good morning. I've been following a tutorial from "EF Database First with ASP.NET MVC" and I've been stuck on this part , I need help, I'm pretty new to this topic. Greetings.     
asked by 22.09.2017 / 06:27
1
answer

show table data related to LINQ

Dear friends, good evening. I have a method to fill clients by name in a datagridview this is my code: public List<CLIENTES> GetClientesByNombre(string nombre) { using (RSAEntities db = new RSAEntities()) {...
asked by 14.09.2017 / 07:15
0
answers

does not let me create in the entitty framework

I have a problem creating a new headquarters = building. Pressing the save button in the create view gives me the following error:    Entities in 'Entities.RRHH_SEDE' participate in the   'FK_RRHH_MUNICIPIO' relationship. 0 related 'RRHH_M...
asked by 05.09.2017 / 17:49
0
answers

Help with MVC Entity Framework

This is my controller: public ActionResult Index() { IEnumerable<ent.RRHH_SEDE> listar = db.TraerTodo(); Enumerable<mod.RRHH_SEDEModel> entidad = Mapper.Map<IEnumerable<ent.RRHH_SEDE>, IEnumerable<mod.RRHH_SED...
asked by 24.08.2017 / 19:28
0
answers

I need to execute a SQL query in LINQ to return a list of a Complex Type

I have a Complex type called GraficaLD that has two properties, an int property called Data and another string property called Label, which I try to do is return a list "List" by executing a query with LINQ This is my SQL query: select su...
asked by 23.08.2017 / 19:02
1
answer

two tables in an Asp.NET MVC view [closed]

Good morning classmates a newbie question in ASP.NET MVC to put data from two different tables, do I need to create a third class so that the data can be seen in a single view? If you could give me an example in code or tutorial I would be very...
asked by 10.08.2017 / 15:33
1
answer

Call data from related columns from the controller

Good morning classmates, I have related the table students and the teacher table in SQL SERVER 2014 I am now passing to ASP.NET MVC the database with Entity Framework . I have already generated the controllers and the views a...
asked by 08.08.2017 / 15:12
1
answer

Values by default MVC with entity framework and stored procedures

I have a stored procedure for saving records that has default values. Guardar(@ID int, @autor varchar (20)='anonimo',@isbn int,@titulo varchar(25)='TBD', @descripcion varchar(250)='N/A') public virtual int Guardar(ObjectParameter ID, strin...
asked by 13.07.2017 / 16:26