Questions tagged as 'dbset'

1
answer

Generic method in DbSet of DbContext with Entity Framework

I have an application in C# that uses Entity Framework . All my DbSet of DbContext , I extend them to have a default search for the grid, below method example. public static GridDTO GridPadrao(this DbSet<Cliente...
asked by 17.06.2016 / 13:31
2
answers

When placing a class in DbSet using Migrations

I have the following classes: public DbSet<Request> Requests { get; set; } public DbSet<Answer> Answers { get; set; } being that they have a one-to-many relationship. When I want a class to be added to my EntityFramework migra...
asked by 08.06.2018 / 13:55
0
answers

Select in the Entity Framework of a table resulting from a relationship N for N

I do not know if the question is very clear, so I'll try to illustrate the scenario better. I created an Activities table and a User table, in the Activities table I have a responsible for it and I can also have some users associated with it....
asked by 04.10.2016 / 15:25