点击或拖拽改变大小

DataSession 类

X#
The DataSession class contains a list of workareas/cursors
继承层次
Object
  Workareas
    DataSession

命名空间:  XSharp.RDD
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法
 CLASS DataSession INHERIT Workareas
查看代码

DataSession 类型公开以下成员。

构造函数
  名称说明
公共方法DataSession(String)
Construct a new datasession
公共方法DataSession(Int32, String)
Construct a new datasession
Top
属性
  名称说明
公共属性CurrentWorkarea
Get Current Workarea Object
(继承自 Workareas。)
公共属性CurrentWorkareaNO
Get 1 based Current Workarea Number
(继承自 Workareas。)
公共属性Id
The unique id for the datasession
公共属性Name
The name for the datasession.
公共属性静态成员Sessions
List of all open DataSessions
Top
方法
  名称说明
公共方法静态成员Add
Add a DataSession to the list of open datasessions
公共方法静态成员Close
Remove a DataSession from the list of open datasessions
公共方法CloseAll
Close All RDDs referenced by this Workarea list
(继承自 Workareas。)
公共方法CloseArea(UInt32)
Close area with 1 based Workarea number
(继承自 Workareas。)
公共方法CloseArea(IRdd)
Close the area where this RDD object is used.
(继承自 Workareas。)
公共方法CommitAll
Commit changes in all workares in this Workarea list
(继承自 Workareas。)
公共方法FindAlias
Return 1 based Workarea Number for Alias or 0 when no found
(继承自 Workareas。)
公共方法FindEmptyArea
Return 1 based empty Workarea
(继承自 Workareas。)
公共方法GetAlias
Get Alias for 1 based Workarea Number
(继承自 Workareas。)
公共方法GetCargo (继承自 Workareas。)
公共方法GetRDD
Get RDD object for 1 based Workarea Number
(继承自 Workareas。)
公共方法SetArea
Set RDD object and ALias for 1 based Workarea Number
(继承自 Workareas。)
公共方法SetCargo (继承自 Workareas。)
公共方法UnLockAll
Unlock All RDDs referenced by this Workarea list
(继承自 Workareas。)
Top
备注
This class also manages the life time of all opened datasessions
When it detects that a datasession for a thread is no longer needed (because the thread has stopped) then it will close that datasession and all tables that are opened by it.
At application shutdown it will also close all opened datasessions including private datasessions that could be opened by forms or reports.
参见