Questions tagged as 'entity-framework'

1
answer

Using EF and Dapper in the same project

I'm making a simple insert of a user class, it's taking almost 10 seconds to save the information. So I tried to find other solutions to solve my performance problem and found Dapper . My question is there any way to use the two...
asked by 05.05.2017 / 02:57
2
answers

What is the proxy creation in the entity framework?

What is the purpose of disabling this feature?     
asked by 02.01.2018 / 12:01
2
answers

How to use the IN clause in Lambda?

There was a doubt that I thought would be easy, but the content I found I could not understand. Good is as follows: I have the tables    "Customer" and    "ErrorsProducao_Ciente" where they relate 1 to N, that is, 1 error can af...
asked by 12.09.2016 / 19:43
1
answer

Query with Many-to-Many Relationship Entity Framework

I'm new to Entity Framework and Linq, so my question may be very simple, but it's breaking my head. I have two entities: public class Fornecedor { public int FornecedorId { get; set; } public string Nome { get; set; }...
asked by 23.12.2015 / 03:06
1
answer

Query Entity Framework relationship Many to Many

I'm starting to use the Entity Framework and am wanting to query between two tables, Livroes and Autors , and their relationship is of type Many to Many . I do not know if it's relevant but I'm using the Code First method, so I...
asked by 21.02.2018 / 14:16
2
answers

Login using Entity with password encrypted as varbinary

I have encrypted the user's password and in the Password field of my table I went from Varchar to Varbinary, in the web part of my system everything is fine only in the windows part I am using Entity and I do not know how to do it validate the u...
asked by 01.07.2014 / 21:18
2
answers

Insert checkbox dynamically by Json return does not display Text?

I am creating a list of Checkbox according to the selection of a Select on the same screen. In the event change of select is called via ajax javascript , the method that returns a Json with list (valu...
asked by 14.01.2017 / 22:09
2
answers

Code First with Complex Types, when doing Scaffolding Complex Types properties are not found in the views

I'm following the presentation of Sergey Barskiy in link , where he demonstrates the approach of Entity FrameWork with Code First. I loved it, but I had a problem. In the presentation, it demonstrates that I can use Complex Types for the...
asked by 04.02.2014 / 15:30
1
answer

Entity Framework auto relationship enable cascading delete

How to create a cascading deletion in a self-relationship using fluent api and enable it in entity framework ? Code: Public class Usuario { public int UsuarioID { get; set; } public int? ObjPaiID { get; set; } pub...
asked by 22.01.2015 / 16:22
1
answer

Get Penultimate record of a table with Entity Framework

How do I get the penultimate record of a table with Entity Framework     
asked by 30.11.2015 / 17:37