本文整理汇总了C#中BoundStatement.Bind方法的典型用法代码示例。如果您正苦于以下问题:C# BoundStatement.Bind方法的具体用法?C# BoundStatement.Bind怎么用?C# BoundStatement.Bind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BoundStatement
的用法示例。
在下文中一共展示了BoundStatement.Bind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Bind
/// <summary>
/// Creates a new BoundStatement object and bind its variables to the provided
/// values. This method is a shortcut for <code>new
/// BoundStatement(this).Bind(...)</code>. <p> Note that while no more
/// <code>values</code> than bound variables can be provided, it is allowed to
/// provide less <code>values</code> that there is variables. In that case, the
/// remaining variables will have to be bound to values by another mean because
/// the resulting <code>BoundStatement</code> being executable.</p>
/// </summary>
/// <param name="values"> the values to bind to the variables of the newly
/// created BoundStatement. </param>
///
/// <returns>the newly created <code>BoundStatement</code> with its variables
/// bound to <code>values</code>. </returns>
public BoundStatement Bind(params object[] values)
{
var bs = new BoundStatement(this);
return bs.Bind(values);
}