我在嘗試通過構造函數加載記錄時出現錯誤。使用構造函數在subsonic3中加載數據?
的構造是:
public Document(Expression<Func<Document,bool>> expression);
,我嘗試這樣
var x = new Document(f=>f.publicationnumber=="xxx");
publicationnumber不是關鍵加載單個項目而是試圖使一個它的唯一關鍵,仍然沒有去..
我完全錯誤的使用構造函數?有人可以告訴我如何使用該構造函數嗎?
我得到的錯誤是:
試驗方法TestProject1.UnitTest1.ParseFileNameTwoProductSingleLanguage拋出異常信息:System.NullReferenceException:
與以下堆棧跟蹤:
SubSonic.Query.SqlQuery.Where C:\ @ Projects \ DocumentsSearchAndAdmin \ DocumentsSearchAndAdmin \ Generated \ ActiveRecord.cs中的
[T]
(表達式表達式):line 5613
rest for removed for simplici TY
問候
丹尼斯
我對亞音速一無所知,但是你的意思是==「xxx」(兩個等於?)。 – LorenVS 2010-03-31 10:43:36