Questions tagged as 'entity-framework'

3
answers

Object is not persisted when using Entity Framework

I am using the Entity Framework 6 and the SqlServer . I have an object called category, where I want to persist it in the database. and when I run this function, it persists the object correctly because I have a datagrid where I can see tha...
asked by 16.12.2017 / 02:12
1
answer

Entity Framework does not edit FK

I have some difficulties with a large project, and I tried to do a simple replica to post here so that someone can help me. One of the difficulties I'm having and how to edit foreign key fields (FK). I have three entities: Vehicle, Make and Mode...
asked by 19.11.2015 / 20:48
2
answers

Doubts Gets / Sets

My project has 3 layers, DAL, BLL, Project I use ASP.NET I have an aspx page in the project, which has textbox containing new values for an update in the database. In the DAL class I have entity that automatically created GETs and SETs...
asked by 24.02.2016 / 17:22
1
answer

Put Validation on Asp Net MVC Identity

I tried to locate this question in the forum and could not find it. I have an MVC Asp Net application that uses to login the Entity Framework with Identity. My client registration works perfectly, but I am not able to validate two fields: Userna...
asked by 22.02.2018 / 03:46
2
answers

Create bank automatically with Code First

I'm creating an ASP.NET MVC application with Code First. This system is trade management software. I would separate the information from each company, and not leave everything in the same bank. We initially thought of leaving everything the same...
asked by 22.01.2016 / 12:10
1
answer

Update records linked with Entity Framework?

For example I have a person class and everyone can have a spouse if she wants (Optional). Let's suppose I have two people registered at the bank:    PersonId: 1, Name: João, PessoaConjugeId = null       PersonId: 2, Name: Maria, PersonaCo...
asked by 27.11.2017 / 18:25
2
answers

How to extend POCOs of the Entity Framework by encapsulating business rules?

I'm developing a 3 layer system. My initial intention was to expose the business layer entities to be used in the EF code first. I want to do this so that I can persist (in memory) entities so that they are managed by DbContext and do...
asked by 07.08.2015 / 19:05