Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULCommand 类 » ExecuteTable 方法

 

ExecuteTable(CommandBehavior) 方法

UL Ext.: 以指定的命令行为检索数据库表以便直接进行操作。ULCommand.CommandText 被解释为表的名称,而 ULCommand.IndexName 可用于指定表的排序顺序。

语法
Visual Basic
Public Function ExecuteTable( _
   ByVal cmdBehavior As CommandBehavior _
) As ULTable
C#
public ULTable ExecuteTable(
   CommandBehavior cmdBehavior
);
参数
  • cmdBehavior   用于描述查询结果及其对连接影响的 System.Data.CommandBehavior 标志的逐位组合。UltraLite.NET 仅支持 System.Data.CommandBehavior.Default、System.Data.CommandBehavior.CloseConnection 和 System.Data.CommandBehavior.SchemaOnly 标志。

返回值

ULTable 对象形式的表。

注释

必须将 ULCommand.CommandType 设置为 System.Data.CommandType.TableDirect。

如果 ULCommand.IndexName 为空值引用(在 Visual Basic 中是 Nothing),则使用主键打开表。否则,使用 ULCommand.IndexName 值打开表,该值是作为排序依据的索引的名称。

另请参见