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


C# SqlWriter.Write方法代码示例

本文整理汇总了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(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:ColumnDefaultConstraint.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) {
			WriteCommentsTo(writer);
			writer.WriteFunction("UPDATE");
			writer.Write('(');
			writer.WriteScript(columnName, WhitespacePadding.None);
			writer.Write(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:PredicateUpdate.cs

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

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

示例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(" ");
		}
开发者ID:nakagami,项目名称:FirebirdSql.Data.FirebirdClient,代码行数:14,代码来源:SkipClause.cs

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

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

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

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

示例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(" ");
		}
开发者ID:nakagami,项目名称:FirebirdSql.Data.FirebirdClient,代码行数:14,代码来源:FirstClause.cs

示例12: WriteTo

		public override void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.Write('(');
			using (writer.Indent()) {
				writer.WriteScript(expression, WhitespacePadding.None);
			}
			writer.Write(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:ExpressionParens.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.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

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


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