Questions tagged as 'entity-framework-6'

1
answer

Save tab information

I have my screen, as follows: Each tab corresponds to a class, and database entity, and going in the sequence there is a reference of them, that is to say in 02 has reference (fk) of 01, in 03 has reference (fk) 02 and so on. I've alwa...
asked by 27.06.2014 / 15:35
1
answer

Check validity with two dates using ef 6

I have the following model: public class Documento { public int Id {get;set;} public int ClienteId {get;set;} public int TipoDocumentoId {get;set;} public DateTime Emissao {get;set;} public DateTime ProximaEmissao {get;set;} }...
asked by 17.12.2018 / 17:59
0
answers

Entity Framework 6 get attributes in SaveChanges

I am using Entity Framework 6 with Oracle . The database is from a legacy system, so I plan to set the primary registry keys on hand. To make life easier, I want to get the SaveChanges of DbContext data from the tab...
asked by 11.12.2018 / 17:43
0
answers

PK and FK Conflict in SQL Server Database

I am facing a Primary Key and Foreign Key conflict problem in SQL Server 2017 Express. I am using ASP.NET with Entity Framework Code First (Migrations). The problem is that when I add a new Client that is a Person does not add. The Entity Framew...
asked by 29.10.2018 / 00:36
0
answers

Foreign Key No choice in DropDown

Good afternoon! I am implementing a small application like Code First and I have a situation where I need to create a new record in a table, using the primary key of another table. By default, when I generate the controller and views automa...
asked by 10.10.2018 / 22:42
0
answers

How to include tables in a one to one EF Core relationship

I need to include the highlighted blue tables for EF Core to make the necessary joins. The PersonFishDocument table has a one-to-one relationship with the highlighted blue tables. I've already tried using .ThenInclude, but the PersonFishDocum...
asked by 01.10.2018 / 00:04
0
answers

Entity insert without children are null - EF6

I have the following problem. I need to insert an entity that has populated children, but I can not be null in the children to insert only the parent entity because in the next lines of precise code of the children filled to insert them. I...
asked by 05.09.2018 / 19:57
0
answers

Entity Framework 6 Many to Many: PK validation problem when adding

Good morning guys, I'm breaking my head here and I still can not fix it. I have two entities, PropertyDetails and PropertyDetails, with relationship n to n. I have been populated, so when I am going to register the ImovelDetalhe, I select thr...
asked by 13.07.2018 / 17:55
1
answer

Error deleting registration with Entity Framework when doing entity mapping

When I try to delete a record from the mapping of Mapper (Model to Domain) I get the following error as a result of E.F :    failed because another entity of the same type already has the same primary key value. But if I do a...
asked by 04.07.2018 / 20:29
0
answers

What is the difference between the MySql.Data.Entity Vs MySql.Data.EntityFramework

I created an application using EF 6.2.0 using MySql When I use the MySql.Data 8.0.11 package together with MySql.Data.EntityFramework 8.0.11 it works normally. When I use the MySql.Data 6.10.7 package together with MySql.Data.Entity 6.10.7...
asked by 04.07.2018 / 20:07