Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
UL Ext: 以指定的命令行为检索数据库表以便直接进行操作。
Public Function ExecuteTable( ByVal cmdBehavior As CommandBehavior ) As ULTable
public ULTable ExecuteTable(CommandBehavior cmdBehavior)
cmdBehavior 用于描述查询结果及其对连接影响的 System.Data.CommandBehavior 标志的逐位组合。UltraLite.NET 仅支持 System.Data.CommandBehavior.Default、System.Data.CommandBehavior.CloseConnection 和 System.Data.CommandBehavior.SchemaOnly 标志。
ULTable 对象形式的表。
ULException 类 发生 SQL 错误。
InvalidOperationException 该命令处于无效状态。ULCommand.Connection 缺失或关闭、ULCommand.Transaction 值与连接的当前事务状态不匹配,或者 ULCommand.CommandText 无效。
ULCommand.CommandText 被解释为表的名称,而 ULCommand.IndexName 可用于指定表的排序顺序。
必须将 ULCommand.CommandType 设置为 System.Data.CommandType.TableDirect。
如果 ULCommand.IndexName 为空值引用(在 Visual Basic 中是 Nothing),则使用主键打开表。否则,使用 ULCommand.IndexName 值打开表,该值是作为排序依据的索引的名称。