1
在活動記錄寫你寫一個模型:Castle.ActiveRecord如何覆蓋虛擬屬性?
[ActiveRecord("TableName")]
public class Model
{
[Property("SomeField")]
public virtual string SomeField { get; set; };
[Property("SomeLazyField"), Lazy= true]
public virtual string SomeLazyField { get; set; };
}
如果該字段是懶惰的,必須在第一次訪問讀取它,所以沒有財產屬性如何重寫屬性並獲取SomeLazyField價值?
交叉貼(含答案)位置:http://groups.google.com/group/castle-project-users/browse_thread/thread/bef5f4c8c390b3ea – 2010-08-17 01:54:24
星爺那就是我在郵件列表:) – 2010-08-17 07:52:58