CoreDb.SetRelation Method
|
|
Relate a specified work area to the current work area.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.24 GA
Syntax STATIC METHOD SetRelation(
cAlias AS STRING,
oKey AS ICodeblock,
cKey AS STRING,
cName AS STRING
) AS LOGIC
public static bool SetRelation(
string cAlias,
ICodeblock oKey,
string cKey,
string cName
)
Request Example
查看代码Parameters
- cAlias
- 类型:String
Alias of child area. - oKey
- 类型:ICodeblock
- cKey
- 类型:String
Relational key as string. - cName
- 类型:String
Name of the relation. Defaults to the parent alias + "_" + Child alias
Return Value
类型:
LogicTRUE if successful; otherwise, FALSE.
备注This function is like DBSetRelation() but strongly typed.
这个函数,不会调用错误处理程序,因此如果失败,不会产生运行时错误消息或创建错误对象。
因此,检查返回值以确定函数是否成功是很重要的。
LastRddError 属性将包含关于发生的任何错误的必要信息。
See Also