Questions tagged as 'entity-framework-6'

1
answer

Entity framework Read an Excel file and show in datagrid in c #

Good afternoon I am trying to read an excel file with entity framework, I have a class which I want to be filled with the data from the excel file and at the end show me the excel in a datagrid c #. What is the way to do it? xfavor private v...
asked by 21.04.2017 / 02:15
2
answers

How to get the values of the view to the MVC controller - RAZOR

I currently have this code in a view, and I want to get all the values to pass them to the controller and create them in the database I have 2 models Subjects: namespace CalculaNotas.Models public class Materias { public int materiasId...
asked by 17.03.2017 / 04:43
2
answers

Entity Framework - Code Firts

If I have a desktop application (Windows Forms) developed with EF code firts but the connection to the database of my pc is Windows authentication (to the SQL server). But when taking it to another PC they have a SQL server with SQL user authent...
asked by 12.10.2016 / 05:31
3
answers

Difference between Public Virtual and List

Hello people I would like to understand what is the difference between declaring a model relationship (entity framework) by public List<Modelo> Modelos { get; set; } and public Virtual Modelo Modelos { get; set; } . Thanks aga...
asked by 11.10.2016 / 19:53
1
answer

How to apply inheritance in the Entity Framework

I am working on a Windows Forms desktop app, I use Visual Studio 2015, Entity Framework approach code-firts. The subject is the following: I have some tables such as: Purchases, Sales, TypeOperations and Movements. In TipoOperacoines regis...
asked by 25.08.2016 / 00:30
2
answers

EntityFramework error or does not save changes

I am having problems saving an entity in my EF6 context, I have tried it in several ways and in 1 it does not give an error but it does not save, the other gives an error. var RegistroProducto = new tblProductos() { Estado...
asked by 24.08.2016 / 23:46
1
answer

Error trying to update with ASP.NET MVC5 entity framework

I have the following problem when I try to update the Gender object, it shows me the following error when I do the update, help try { Common.Entities.Gender gender = this.genderRepository.FindGenderId(genderModel.GenderId);...
asked by 04.01.2019 / 14:24
0
answers

Entity Framework - Limit of the armed query

Good day, I tell you the following problem that I see to see what they advise me to do to solve the problem. Step to explain: The system has several entities that refer to categories of vouchers such as purchase, sale, payments, etc. They are...
asked by 18.12.2018 / 16:24
0
answers

EF6 query with Optimized Filters

I'm working in a Backoffice. My Problem "Queries with filters take between 40 and 60 seconds or more, I'd like to know if it's a Performance problem that belongs to my Query, or if the database is old, scant of Indexes, it worked perfe...
asked by 28.11.2018 / 01:05
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