本文整理汇总了C#中SqlWriter.Write方法的典型用法代码示例。如果您正苦于以下问题:C# SqlWriter.Write方法的具体用法?C# SqlWriter.Write怎么用?C# SqlWriter.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SqlWriter
的用法示例。
在下文中一共展示了SqlWriter.Write方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteTo
public override void WriteTo(SqlWriter writer) {
base.WriteTo(writer);
writer.WriteKeyword("DEFAULT ");
writer.Write('(');
writer.WriteScript(defaultValue, WhitespacePadding.None);
writer.Write(')');
}
示例2: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteScript(tableNameQualified, WhitespacePadding.None);
writer.Write('.');
writer.WriteScript(columnName, WhitespacePadding.None);
writer.Write('.');
base.WriteTo(writer);
}
示例3: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteFunction("UPDATE");
writer.Write('(');
writer.WriteScript(columnName, WhitespacePadding.None);
writer.Write(')');
}
示例4: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteKeyword("OPTION ");
writer.Write('(');
writer.WriteScriptSequence(options, WhitespacePadding.None, w => w.Write(", "));
writer.Write(')');
}
示例5: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteFunction("COUNT");
writer.Write('(');
writer.WriteDuplicateRestriction(restriction, WhitespacePadding.SpaceAfter);
writer.WriteScript(expression, WhitespacePadding.None);
writer.Write(')');
}
示例6: WriteSql
/// <summary>
/// Write out the SKIP part of sql select statement
/// It basically writes SKIP (X).
/// </summary>
/// <param name="writer"></param>
/// <param name="sqlGenerator"></param>
public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator)
{
writer.Write("SKIP (");
SkipCount.WriteSql(writer, sqlGenerator);
writer.Write(")");
writer.Write(" ");
}
示例7: WriteTo
public override void WriteTo(SqlWriter writer) {
if (HasValue) {
writer.WriteKeyword("WITH ");
writer.Write('(');
writer.WriteScriptSequence(hints, WhitespacePadding.None, w => w.Write(", "));
writer.Write(')');
}
}
示例8: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteKeyword("EXTERNAL NAME ");
writer.WriteScript(assemblyName, WhitespacePadding.None);
writer.Write('.');
writer.WriteScript(className, WhitespacePadding.None);
writer.Write('.');
writer.WriteScript(methodName, WhitespacePadding.None);
}
示例9: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteKeyword("IDENTITY");
writer.Write('(');
writer.WriteScript(typeName, WhitespacePadding.None);
writer.WriteScript(seed, WhitespacePadding.None, w => w.Write(", "), null);
writer.WriteScript(increment, WhitespacePadding.None, w => w.Write(", "), null);
writer.Write(')');
}
示例10: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteScript(functionCall, WhitespacePadding.None);
writer.WriteKeyword(" OVER ");
writer.Write('(');
writer.WriteScript(rankingArguments, WhitespacePadding.None);
writer.Write(')');
}
示例11: WriteSql
/// <summary>
/// Write out the FIRST part of sql select statement
/// It basically writes FIRST (X).
/// </summary>
/// <param name="writer"></param>
/// <param name="sqlGenerator"></param>
public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator)
{
writer.Write("FIRST (");
FirstCount.WriteSql(writer, sqlGenerator);
writer.Write(")");
writer.Write(" ");
}
示例12: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.Write('(');
using (writer.Indent()) {
writer.WriteScript(expression, WhitespacePadding.None);
}
writer.Write(')');
}
示例13: WriteTo
public override void WriteTo(SqlWriter writer) {
base.WriteTo(writer);
writer.Write('(');
writer.WriteScript(firstExpression, WhitespacePadding.None);
writer.Write(", ");
writer.WriteScript(secondExpression, WhitespacePadding.None);
writer.Write(')');
}
示例14: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteFunction("CAST");
writer.Write('(');
writer.WriteScript(expression, WhitespacePadding.None);
writer.WriteKeyword(" AS ");
writer.WriteScript(typeName, WhitespacePadding.None);
writer.Write(')');
}
示例15: WriteToInternal
protected override void WriteToInternal(SqlWriter writer) {
if (columnNames.Count > 0) {
writer.Write(" (");
writer.WriteScriptSequence(columnNames, WhitespacePadding.None, w => w.Write(", "));
writer.Write(")");
}
writer.WriteScript(output, WhitespacePadding.NewlineBefore);
}