Execute() защищенный Метод

Invokes the specified delegate passing a valid NHibernate session. Used for custom NHibernate queries.
protected Execute ( NHibernateDelegate call ) : object
call NHibernateDelegate The delegate instance
Результат 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);
 }