編集ページでチェックボックスを選択する必要があります。そのために、次のようなクエリがあります。
var queryFI=(from u in _db.User where u.UserID==id where u.IsActive==1
select u);
var join_queryFI=from r in queryFI join f in _db.Financial on r.FinancialID equals f.FinancialID
into c
from d in c.DefaultIfEmpty()
select new viewpartial
{
Text = d.FiName,
Value = d.FinancialID.ToString(),
Selected = d.FinancialID == r.FinancialIntermediaryID ? true : false
};
ViewBag.IfcList = join_queryFI.ToList();
エラーが発生しました:
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
助けてください