2009-08-26 14 views
0

従業員のエンティティを取得するときに、テーブルEmployeeにテーブルperson、department、 の外部キーがある場合、関連エンティティも両方ともロードする必要があります。 linqクエリの作成方法以下のように?linqクエリのインクルード用パラメータ文字列の書き方は?

var employee = this.Context.Employee.Include("Person, Department"); 

動作していないようです。

答えて

1
var employee = this.Context.Employee.Include("Person").Include("Department"); 
関連する問題