Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定要执行的命令的类型。
Public Overrides Property CommandType As CommandType
public override CommandType CommandType {get;set;}
ArgumentException UltraLite.NET 不支持 CommandType.StoredProcedure。
System.Data.CommandType 值之一。缺省值为 System.Data.CommandType.Text。
所支持的命令类型如下:
System.Data.CommandType.TableDirect - UL Ext: 指定此 CommandType 时,ULCommand.CommandText 必须是数据库表的名称。您还可以使用 ULCommand.IndexName 指定用于打开(排序)表的索引。使用 ULCommand.ExecuteTable() 或 ULCommand.ExecuteReader() 访问表。
System.Data.CommandType.Text - 指定此 CommandType 时,ULCommand.CommandText 必须是 SQL 语句或查询。使用 ULCommand.ExecuteNonQuery 执行非查询 SQL 语句并使用 ULCommand.ExecuteReader() 或 ULCommand.ExecuteScalar 执行查询。