5
Linq Query tiếp tục thông báo “Không thể tạo một giá trị không đổi của kiểu System.Object…”, tại sao?
Sau đây là mẫu mã: private void loadCustomer(int custIdToQuery) { var dbContext = new SampleDB(); try { var customerContext = from t in dbContext.tblCustomers // keeps throwing: where t.CustID.Equals(custIdToQuery) // Unable to create a constant value of type 'System.Object'. select new // Only primitive types ('such as Int32, String, and …