Castle.ActiveRecord.HookDispatcher.OnLoad C# (CSharp) Метод

OnLoad() публичный Метод

Called just before an object is initialized
The interceptor may change the state, which will be propagated to the persistent object. Note that when this method is called, entity will be an empty uninitialized instance of the class.
public OnLoad ( object entity, object id, object state, string propertyNames, IType types ) : bool
entity object
id object
state object
propertyNames string
types IType
Результат bool
        public override bool OnLoad(object entity, object id, object[] state, string[] propertyNames, IType[] types)
        {
            ActiveRecordHooksBase hookTarget = entity as ActiveRecordHooksBase;

            if (hookTarget != null)
            {
                return hookTarget.BeforeLoad(id, new DictionaryAdapter(propertyNames, state));
            }

            return false;
        }