当前位置: 首页>>代码示例>>C#>>正文


C# SqlWriter.WriteScript方法代码示例

本文整理汇总了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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:ColumnCheckConstraint.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:SourceTableColumnNodesRowset.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:ColumnForeignKeyConstraint.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:SourceRemoteTableRowset.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:PredicateIn.cs

示例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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:ExpressionRankingFunction.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:DropIndexStatement.cs

示例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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:IdentityFunction.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:ExternalName.cs

示例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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:CastFunction.cs

示例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");
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:Parameter.cs

示例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);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:PredicateLike.cs

示例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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:KeywordWithArgumentPairFunction.cs

示例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(')');
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:XmlDirective.cs

示例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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:ConvertFunction.cs


注:本文中的SqlWriter.WriteScript方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。