/// <summary> /// Invokes the specified delegate passing a valid /// NHibernate session. Used for custom NHibernate queries. /// </summary> /// <param name="targetType">The target ActiveRecordType</param> /// <param name="call">The delegate instance</param> /// <param name="instance">The ActiveRecord instance</param> /// <returns>Whatever is returned by the delegate invocation</returns> public static object Execute(Type targetType, NHibernateDelegate call, object instance) { return(ActiveRecordBase.Execute(targetType, call, instance)); }
public virtual object Execute(NHibernateDelegate call) { return(ActiveRecordBase.Execute(typeof(T), call, this)); }
public static void Execute(T instnace, NHibernateDelegate call) { ActiveRecordBase.Execute(typeof(T), call, instnace); }