Questions tagged as 'entity-framework'

1
answer

configuring EntityFramework C # and SQL Server [closed]

"the element 'entityFramework' has invalid child element 'providers'.     List of possible elementes expected: 'contexts'. "     
asked by 02.01.2017 / 13:07
1
answer

.Include () does not load child class - Lazyloading C #

I was using the DDD Model with Repositories and with 3 layers of data, (with% of%,% with% and% with of%), with the help of some users here I decided to change the project and now I've finished removing 2 layers to Serviço and Repositor...
asked by 04.11.2016 / 16:44
1
answer

The member with identity '' does not exist in the metadata collection?

I could not figure out how to solve this problem between my base and my mapping using Fluent API. I have a mapping in the Fluent API of a certain pre-existing table in the client database, however this table has a trigger that is triggered...
asked by 04.11.2016 / 19:48
1
answer

Dynamic filters using lambda

I have a table    ErrorsProduction_Registros that links to another table called    ErrorsProducao_Tipos. I need to perform dynamic filters in the ErrorsProductionRegister table using lambda expressions. If I run the filters like...
asked by 13.09.2016 / 22:34
1
answer

Save multiple text box data with equal names

In my project I have a rule that is to save several fields with the same name at one time. Today, registration works, but only one field only, and that's not what I want. I need to click on save to save all fields, generating different record...
asked by 31.05.2016 / 03:28
2
answers

Inheritance in the Entity Framework

I'm now reading about cross-domain inheritance in EF. I came across this example: public abstract class BillingDetail { public int BillingDetailId { get; set; } public string Owner { get; set; } public string Number { get; set; } }...
asked by 28.05.2016 / 17:54
1
answer

cascade delete with entity framework

I have the following situation: my database is MySql, when I try to delete a direct record in the bank, from this message: Cannot delete or update a parent row: a foreign key constraint fails ('lifeproject'.'t0041_usuario', CONSTRAINT 'fk_t004...
asked by 28.05.2016 / 02:30
1
answer

Entity Framework needs Session and HttpContext?

I watched some videos about Entity and saw two different versions, in a first it was something simple and straightforward (I believe the raw form of Entity), where it only instantiated the context of the bank and applied the add, : usin...
asked by 27.01.2016 / 01:48
1
answer

Thousands separator

How could I put thousands separator in a textBoxFor() ? Example: Value entered in View 1.321 (The point is only to facilitate visually) and the controller would receive the value 1321 to insert into the base. My field is...
asked by 21.12.2015 / 18:21
1
answer

How to fix the System.Collections.Generic.IEnumerable error

My application that manages Courses has this error The template item passed to the dictionary is of type 'System.Collections.Generic.List'1 [MyProject.Models.Course] ", but this dictionary requires a model item of type 'System.Collections.Gen...
asked by 27.06.2015 / 19:28