Execute() protected method

Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
protected Execute ( NHibernateDelegate call ) : object
call NHibernateDelegate The delegate instance
return object
コード例 #1
0
 /// <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));
 }
コード例 #2
0
 public virtual object Execute(NHibernateDelegate call)
 {
     return(ActiveRecordBase.Execute(typeof(T), call, this));
 }
コード例 #3
0
 public static void Execute(T instnace, NHibernateDelegate call)
 {
     ActiveRecordBase.Execute(typeof(T), call, instnace);
 }