skip to Main Content

LINQ To Entity – Inner Join issue – Asp.net

I have two related tables like below : Users : public partial class Users { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Users() { } public int ID { get; set; } public int UserType_ID { get; set; } public string Email { get;…

VIEW QUESTION

Unable to resolve service DbContext while attempting to activate controller – Asp.net

I have my own DbContext: public class DreamsContext : DbContext { public DbSet<UserAccount> UserAccounts { get; set; } public DbSet<DreamPublication> DreamPublications { get; set; } public DreamsContext(DbContextOptions<DreamsContext> options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<UserAccount>().ToTable("dreams_user"); modelBuilder.Entity<DreamPublication>().ToTable("dream_publications");…

VIEW QUESTION
Back To Top
Search