Questions tagged as 'entity-framework'

3
answers

How to implement the default presented in C # with EntityFramework?

I'm thinking of a way to apply the pattern ( multi-tenant ), raised on this issue ( Standard that has contributed to the reliability of software that needs to meet complex models such as multi-business models ) EntityFramework . As th...
asked by 17.09.2014 / 15:22
3
answers

Entity FrameWork relationship many x many extra field

Good morning, I am studying the FrameWork Entity Code First and am wondering how I should create a NxN template with extra information in the relationship table. For example: Let's assume the following relationship (image taken from the MS...
asked by 10.09.2014 / 15:48
1
answer

Why does Visual Studio 2013 not let me use version 4 of the Entity Framework?

I do not know why, but whenever I try to update the Object Model of an old project we have, Visual Studio 2013 asks if we want to keep version 4 of EF, but even marking the right version it updates and includes references to version 5. With t...
asked by 10.02.2014 / 21:11
1
answer

Relationships Does EDMX only affect performance?

I have a question about the Entity Framework. Here in the company where I work, the tables are generated in the database without any relationship, until the fields that will be foreign keys are created, the whole relationship is done by EDMX...
asked by 29.05.2015 / 15:02
1
answer

I can not get a provider for Oracle with Code First

I'm doing the following: Model dou Add folder > New Item follows images ThenIselectADO.NetEntity,giveitaname,andADD SelectCodeFirstandgiveNext Wellatthisstep,Iselect,andseefromtheimagethatIdonothavetheOracleClientoptionandIalreadyaddediti...
asked by 05.11.2015 / 13:14
1
answer

Error while using Entity Framework BulkInsert

I have an Asp.Net MVC project in .Net Framework 4.0 with Entity Framework 5.0, where I added the BulkInsert- ef5 , but in the following excerpt error occurs: using (MeuEntities context = new MeuEntities()) { context.Configuration.AutoDete...
asked by 02.06.2016 / 15:47
1
answer

Why the OFF SET leaves SQL slower?

I have the following SQL, generated by Entity Framework 6. SELECT [Project1].[C1] AS [C1], [Project1].[ID] AS [ID], [Project1].[CAMPO1] AS [CAMPO1], [Project1].[CAMPO2] AS [CAMPO2], [Project1].[CAMPO3] AS [CAMPO3],...
asked by 17.11.2015 / 13:44
1
answer

Replicate / Copy elements from multiple tables

I have the following situation: The user has defined an establishment, where it has filled data in two tables, and wants to replicate / copy the data all the same, changing only the id of the establishment. I have the tables: ThetableAcidImpu...
asked by 16.04.2014 / 11:03
3
answers

Is there Data Annotation that avoids duplication of data in the Bank?

How do I prevent data being duplicated in the database using Data Annotation or would it be through another validation?     
asked by 10.11.2016 / 16:18
2
answers

How do I prevent a property from being mapped to an entity in the Entity Framework?

I need to insert a property in the template class, but when I enter the code first, it says that the table already exists and changes have been made. My code: public class Data { [Key] public int Id { get; set; }...
asked by 04.03.2014 / 15:37