本文整理汇总了C#中SqlWriter.WriteRaw方法的典型用法代码示例。如果您正苦于以下问题:C# SqlWriter.WriteRaw方法的具体用法?C# SqlWriter.WriteRaw怎么用?C# SqlWriter.WriteRaw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SqlWriter
的用法示例。
在下文中一共展示了SqlWriter.WriteRaw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteLimit
/// <summary>
/// Writes the specified result set limitation for the current SQL dialect.
/// Writes the <c>LIMIT <paramref name="offset"/>, <paramref name="count"/></c> clause
/// to the output <paramref name="writer"/>.
/// syntax.
/// </summary>
/// <param name="writer">
/// The <see cref="SqlWriter"/> to write to.
/// </param>
/// <param name="offset">
/// The row offset at which to start.
/// </param>
/// <param name="count">
/// The number of rows to fetch.
/// </param>
public override void WriteLimit(SqlWriter writer, int? offset, int? count)
{
writer.WriteKeyword(MySqlKeywords.Limit);
if (offset != null)
{
writer.WriteValue(offset.GetValueOrDefault());
writer.WriteRaw(",");
}
writer.WriteValue(count.GetValueOrDefault(int.MaxValue));
}