請問各位大大,請問
我在編譯這段程式
string ESQL = "SELECT MIN(T." + FIDFieldName + ") AS ID " +
"FROM XINEntities1." + FTableName + " AS T ";
DbDataRecord rec = new ObjectQuery<DbDataRecord>
(ESQL, context).FirstOrDefault();
出現錯誤如下:
無法從 'SEAN.XINEntities1' 轉換為 'System.Data.Objects.ObjectContext' C:\Users\sean\Documents\Visual Studio 2012\Projects\SEAN\SEAN\Base.cs 365 51 SEAN
我已經有將system.data.object加進來了
卻還是找不到?!