I am having 3 tables with a join tables between the user and the type tables.
I import the tables as code first from database, I have the contexts fine, DBset, DBSet, and
modelBuilder.Entity<User>() .HasMany(e => e.Type) .WithMany(e => e.Users) .Map(m => m.ToTable("UserType").MapLeftKey("ut_use_id").MapRightKey("ut_ut_id"));
However, I have no idea how to retrieve with linq to sql a table with 3 columns User.name, User.firstname, and Type.type_description==1 ?
I started and tried
using (MyContext db = new MyContext())
{
var query = (from u in db.Users....
But there is no table db.UserType ?
Thanks for your helps Cheers