-2
LINQ to Entities無法識別方法'Int32 ToInt32(System.String)'方法。LINQ to Entities不識別方法'Int32 ToInt32(System.String)'方法。 mvc
System.Web.Security.MembershipUser mu = System.Web.Security.Membership.GetUser();
string ID = mu.ProviderUserKey.ToString();
if(db.resume.Where(x => x.employeeID ==Convert.ToInt32(ID)).Count() == 0)
將Convert.ToInt32(ID)放入一個變量中,並使用該變量代替它並再次嘗試 –