Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
预编译并存储此命令的 SQL 语句。
Public Overrides Sub Prepare()
public override void Prepare()
ULException 类 发生 SQL 错误。
InvalidOperationException 该命令处于无效状态。ULCommand.Connection 值缺失或关闭、ULCommand.Transaction 值与连接的当前事务状态不匹配,或者 ULCommand.CommandText 值无效。
当只有参数值发生更改时,对语句进行预编译可以有效地重复使用语句。更改此命令中的任何其它属性都会使得准备的语句无效。
UltraLite.NET 不需要显式准备语句,因为所有未预先准备的命令都会在调用各种 Execute 方法时准备好。