none
Entity Framework Code First - Invalid column name Discriminator

    Question

  • Two Classes in codefirst

    public partial class BaseEntity {

    public int ID { get; set; }

    }

    public partial class Fund : BaseEntity
    {
    public int Name { get; set; }

    }

    public partial class InvestorFund : BaseEntity {

    public int FundID { get; set; }

    }

    Mapping Classes

    this.Property(t => t.ID).HasColumnName("FundID");

    My Code First Join SQL Query 

    from fund in context.Funds
    join investorFund in context.InvestorFunds on fund.ID equals investorFund.FundID

    Throws an "Invalid column name Discriminator"

    • Moved by CoolDadTxMVP Monday, April 29, 2013 5:12 PM EF related
    Monday, April 29, 2013 7:53 AM

Answers

All replies