2010-01-12 44 views

回答

2

沒有必要的代碼:只需在您的[ActiveRecord]屬性使用視圖名稱而不是表:

[ActiveRecord("MyView")] 
public class Document {...} 

注意的SchemaExport將把您的視圖爲表,here's how to fix說。

+0

ActiveRecord FAQ:http://using.castleproject.org/display/AR/FAQ – 2010-01-24 15:17:41