が、私はエラーを取得しています有効ではありません - A specified Include path is not valid. The EntityType 'myProject.DAL.Paint' does not declare a navigation property with the name 'Color'.
含める指定したパスが
DAL
public DBSet<Palete> Paletes {get; set; }
public DbSet<Paint> Paints { get; set; }
(注:modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
)
モデルを
public class Palete
{
public virtual Paint Paint { get; set; }
}
public class Paint
{
public string Color { get; set; }
}
query = query.Include(pal => pal.Paint.Color);
このエラーを修正するにはどうすればよいですか?
正確なスペルは[palette](http://dictionary.reference.com/browse/palette)です... – Timwi
@Timwi - fixed :) –