本文整理汇总了C#中SqlWriter.WriteScript方法的典型用法代码示例。如果您正苦于以下问题:C# SqlWriter.WriteScript方法的具体用法?C# SqlWriter.WriteScript怎么用?C# SqlWriter.WriteScript使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SqlWriter
的用法示例。
在下文中一共展示了SqlWriter.WriteScript方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteTo
public override void WriteTo(SqlWriter writer) {
base.WriteTo(writer);
writer.WriteKeyword("CHECK ");
writer.WriteScript(replication, WhitespacePadding.SpaceAfter);
writer.WriteScript(predicate, 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) {
base.WriteTo(writer);
writer.WriteKeyword("REFERENCES ");
writer.WriteScript(tableName, WhitespacePadding.None);
writer.WriteScript(refColumnName, WhitespacePadding.SpaceBefore);
writer.WriteScriptSequence(keyActions, WhitespacePadding.SpaceBefore, null);
}
示例4: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteScript(serverName, WhitespacePadding.None, null, w => w.Write('.'));
writer.WriteScript(databaseName, WhitespacePadding.None, null, w => w.Write('.'));
writer.WriteScript(schemaName, WhitespacePadding.None, null, w => w.Write('.'));
writer.WriteScript(tableName, WhitespacePadding.None);
base.WriteTo(writer);
}
示例5: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteScript(valueExpression, WhitespacePadding.None);
base.WriteTo(writer);
writer.WriteKeyword(" IN ");
writer.WriteScript(tuple, WhitespacePadding.None);
}
示例6: 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(')');
}
示例7: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteKeyword("DROP INDEX ");
writer.WriteScript(indexName, WhitespacePadding.None);
writer.WriteKeyword(" ON ");
writer.WriteScript(tableName, WhitespacePadding.None);
writer.WriteScript(indexOptions, WhitespacePadding.SpaceBefore);
}
示例8: 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(')');
}
示例9: 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);
}
示例10: 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(')');
}
示例11: WriteTo
public override sealed void WriteTo(SqlWriter writer) {
writer.WriteScript(parameterName, WhitespacePadding.SpaceAfter);
writer.WriteScript(parameterTypeName, WhitespacePadding.None);
WriteParameterQualifiers(writer);
if (readOnly) {
writer.WriteKeyword(" READONLY");
}
}
示例12: WriteTo
public override void WriteTo(SqlWriter writer) {
WriteCommentsTo(writer);
writer.WriteScript(valueExpression, WhitespacePadding.None);
base.WriteTo(writer);
writer.WriteKeyword(" LIKE ");
writer.WriteScript(pattern, WhitespacePadding.None);
writer.WriteScript(escape, WhitespacePadding.None, w => w.WriteKeyword("ESCAPE "), null);
}
示例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.WriteScript(key, WhitespacePadding.None);
writer.WriteScript(value, WhitespacePadding.SpaceBefore);
if (elementName != null) {
writer.Write('(');
writer.WriteScript(elementName, WhitespacePadding.None);
writer.Write(')');
}
}
示例15: WriteTo
public override void WriteTo(SqlWriter writer) {
writer.WriteIdentifier("CONVERT");
writer.Write('(');
writer.WriteScript(typeName, WhitespacePadding.None);
writer.Write(", ");
writer.WriteScript(valueExpression, WhitespacePadding.None);
writer.WriteScript(style, WhitespacePadding.None, w => w.Write(", "), null);
writer.Write(')');
}