C# Class Com.Aote.Behaviors.HQLAction

执行HQL语句,即支持自己单独执行,也支持批处理的执行。 支持自己单独执行的目的是,在某些场合,去后台进行数据库操作只有一条HQL语句。 这时,就不用配置BatchExcuteAction了,直接配置HQLAction即可。
Inheritance: BaseAsyncAction
Datei anzeigen Open project: DuBin1988/restv2 Class Usage Examples

Public Properties

Property Type Description
CanSaveProperty System.Windows.DependencyProperty
HQLProperty System.Windows.DependencyProperty

Public Methods

Method Description
Invoke ( ) : void

动作的执行过程,首先调用获取执行语句的方法获得后台服务所需Json格式的语句。 然后把这个执行语句发送到统一的批量数据执行服务上,执行后台数据库操作。

InvokeToJson ( ) : System.Json.JsonObject

获得批量执行中执行HQL语句的Json格式的语句描述。格式为: {"operator":"hql", "data":"hql语句"}

OnHQLChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Private Methods

Method Description
OnCanSaveChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Method Details

Invoke() public method

动作的执行过程,首先调用获取执行语句的方法获得后台服务所需Json格式的语句。 然后把这个执行语句发送到统一的批量数据执行服务上,执行后台数据库操作。
public Invoke ( ) : void
return void

InvokeToJson() public method

获得批量执行中执行HQL语句的Json格式的语句描述。格式为: {"operator":"hql", "data":"hql语句"}
public InvokeToJson ( ) : System.Json.JsonObject
return System.Json.JsonObject

OnHQLChanged() public static method

public static OnHQLChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs args ) : void
dp System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
return void

Property Details

CanSaveProperty public_oe static_oe property

public static DependencyProperty,System.Windows CanSaveProperty
return System.Windows.DependencyProperty

HQLProperty public_oe static_oe property

public static DependencyProperty,System.Windows HQLProperty
return System.Windows.DependencyProperty