Questions tagged as 'entity-framework'

2
answers

INNER JOIN listed in the Entity Framework

I have these 2 tables Table Products Table Balances I want to list the table in such a way that it shows me all the data of the first table plus the amount according to the id, I did it with this sentence: SELECT A...
asked by 25.08.2018 / 00:26
2
answers

Separate entity from context

I'm working with Entity Framework 4.5.2, Visual Studio 2015 I have the following entity. public class Especificacion { public int EspecificacionId { get; set; } public string Nombre { get; set; } public virtual...
asked by 08.09.2018 / 17:40
1
answer

Problem to connect Visual Studio project to MySQL database

My problem is as follows, and I can not find a solution. I have a MySQL database, which I want to manage from my application. I have a project in C # with Visual Studio, in which I am using the MVVM architecture, and I am trying to use the...
asked by 12.01.2018 / 17:22
1
answer

Error executing SaveChanges ()

I'm doing a ActionResult that helps me to do a update and to do a insert , depending on the flag that passes as a parameter, this I had already done with other controllers and it works perfectly, but with this it sends an err...
asked by 24.07.2017 / 18:50
3
answers

HTTP Error 404.0 Not Found

Good day mates I have this code of the contrlador and the view in asp.net mvc but when clicking on edit I get this error and verify to have created the view, I think it does not identify by id but in my code in the controller what I put it to go...
asked by 28.06.2017 / 00:16
2
answers

Create a view object of two different tables using entity

I need to return a DataView in Edit view but the view is filled with two different tables. What I need is to know how to return an object PatientView of my two tables, patient and people This is the Edit...
asked by 02.07.2017 / 04:00
1
answer

Select records according to ID with EntityFrameWork

New work and the test is as follows I have this function that receives a parameter of type (DbGeography) which selects a set of results and returns a list, now what I need is to change the parameter by (int RestaurantID) and make the same sel...
asked by 23.09.2016 / 17:31
1
answer

How do I add data from a table column in C # and SQL Server with Entity framework?

I'm working with c # in visual studio and entity framework, I'm a novice in this. What I need is to add a column of a sql server table. I had thought about creating a list with all those numbers and then adding them. But I do not know how to do...
asked by 09.12.2018 / 02:56
1
answer

How to save the checks from a checkbox to the database?

I developed an application in WPF with C #. I have a window that contains a Combobox where the Items are composed of Checkbox with a foreach result of a table. My question is: How do I keep in the database with LINQ, the checkbox check that are...
asked by 12.12.2018 / 18:55
2
answers

I try to update a record of my bd with entity framework but it does not update it (It does not mark errors)

What I want to do is a simple update of a record of my table and in this case I want to do it with linq but at the moment when it arrives at that piece of code it does not mark me any mistake and executes all the lines but it does not I update t...
asked by 27.06.2018 / 20:50