Вопрос по entity-framework-4, .net, c# – Как отобразить один объект с несколькими таблицами

3

Error: User Rate Limit Exceeded

public class HomeViewModel  
{ 
    [Key] 
    [Column("candidate_ID")] 
    public int candidateID { get; set; } 
    [Column("first_name")] 
    public string firstName { get; set; } 
    [Column("last_name")] 
    public string lastName { get; set; } 

    public string emailID { get; set; } 
    public string mb_country_code { get; set; } 
    public int mobile_no { get; set; } 
}

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

public class EmployeeMonitoring : DbContext
{
    public DbSet<HomeViewModel> homeViewModel { get; set; }

    protected override void OnModelCreating(DbModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);
        modelBuilder.Entity<HomeViewModel>().Map(m =>
            {
                m.Properties(a => new { a.candidateID, a.firstName, a.lastName,a.status });
                m.ToTable("table1");
            }).Map(m =>
            {
                m.Properties(c => new { c.candidateID,c.emailID, c.mobile_no, c.mb_country_code });
                m.ToTable("table2");
        });
     }
}`

Error: User Rate Limit Exceeded

var data = db.homeViewModel.ToList();

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Erik Funkenbusch
Error: User Rate Limit Exceeded Andrew Barber
Error: User Rate Limit Exceeded Andrew Barber
Error: User Rate Limit Exceeded Erik Funkenbusch
Error: User Rate Limit Exceeded Brendan Vogt

Ваш Ответ

3   ответа
0

CandidateID

Edit:

Error: User Rate Limit Exceeded RollerCosta
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded RollerCosta
1

1


Похожие вопросы