Questions tagged as 'entity-framework-6'

3
answers

What is the difference between using virtual property or not in EF?

I have my models public class Cliente { public int Id {get;set;} public string Nome {get;set;} } and public class Pedido { public int Id {get;set;} public int ClienteId {get;set;} public virtual Cliente Cliente {get;set;} }...
asked by 04.03.2015 / 03:26
4
answers

Multiple contexts Migrations Entity Framework

I have several projects and each project has a context. I would like to know how to use Migrations to update and generate only one database of these various contexts?     
asked by 26.02.2015 / 06:40
1
answer

At what point does the Entity Framework query an IQueryable?

I'm developing a method for an API that consists of the following: fetch all evaluations from a given client and, if specified, limit the amount of records that will be returned. For example: public IEnumerable<Avaliacao> GetAvaliacoe...
asked by 16.02.2016 / 21:50
2
answers

What's the difference between SaveChanges and SubmitChanges?

Within the context Entity Framework what is the difference between SaveChanges and SubmitChanges ? When should I use one or the other?     
asked by 07.10.2016 / 20:03
1
answer

How to create a login page and password in ASP.NET?

I'm trying to create a login control for my application but I'm not finding a way to do this. I would like it to be a full login control, where I could register new users, retrieve their passwords, etc. Can anyone give me a hint how to do thi...
asked by 17.06.2014 / 05:59
2
answers

How to get all records of a mixed table generated by class inheritance when using EntityFramework 6?

I have a class structure in the following form: public class Pessoa { public int Id {get; set;} public string Nome {get; set;} } public class Membro : Pessoa { public int CargoId {get; set;} public Cargo Cargo {get; set;} } p...
asked by 21.04.2014 / 17:12
2
answers

How to structure a solution separating WebApi from WebUI using ASP.NET Identity?

How should a solution be organized that will have at least three projects, such as: Class Library as Infrastructure Web Application as Web Api MVC Web Application for WebUI (user interface) Where ASP.NET Identity will be used as an au...
asked by 20.11.2014 / 01:58
2
answers

Many Relationship To Many Entity Framework 6

Good morning, I have the following classes: CONSUL_CA_Aluno: public class CONSUL_CA_Aluno { public int Id { get; set; } public string Nome { get; set; } public int Cpf { get; set; } public string Email { get; set; } pu...
asked by 05.05.2014 / 21:01
2
answers

How to access next and previous record with C # using Entity Framework

I'm developing a Windows Form application, with Entity Framework 6 + MySQL. As is common in systems, I have in each form navigation buttons (First Record, Previous Record, Next Record, Last Record) The question: Is there any definite synta...
asked by 02.08.2015 / 02:54
2
answers

Relationship 1 to 1 with Entity Framework

I have 2 entities: Equipamento and Databook . A Equipamento can only have a Databook and a Databook is only a Equipamento . How can I make this relationship with Entity Framework? Follow the Classes:...
asked by 24.10.2014 / 01:16