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


C# SqlWriter.WriteKeyword方法代码示例

本文整理汇总了C#中SqlWriter.WriteKeyword方法的典型用法代码示例。如果您正苦于以下问题:C# SqlWriter.WriteKeyword方法的具体用法?C# SqlWriter.WriteKeyword怎么用?C# SqlWriter.WriteKeyword使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SqlWriter的用法示例。


在下文中一共展示了SqlWriter.WriteKeyword方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteKeyword("FOR UPDATE");
			if (columns.Count > 0) {
				writer.WriteKeyword(" OF ");
				writer.WriteScriptSequence(columns, WhitespacePadding.None, w => w.Write(", "));
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:UpdateModeForUpdate.cs

示例2: WriteTo

		public override void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteScript(valueExpression, WhitespacePadding.None);
			writer.WriteKeyword(" IS");
			base.WriteTo(writer);
			writer.WriteKeyword(" NULL");
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:PredicateNull.cs

示例3: 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

示例4: WriteTo

		public override sealed void WriteTo(SqlWriter writer) {
			if (position != CursorPosition.None) {
				writer.WriteKeyword(position.ToString().ToUpperInvariant());
				writer.Write(' ');
			}
			WriteOffset(writer);
			writer.WriteKeyword("FROM");
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:8,代码来源:CursorPositionToken.cs

示例5: WriteParameterQualifiers

		protected override void WriteParameterQualifiers(SqlWriter writer) {
			if (varying) {
				writer.WriteKeyword(" VARYING");
			}
			base.WriteParameterQualifiers(writer);
			if (output) {
				writer.WriteKeyword(" OUTPUT");
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:ProcedureParameter.cs

示例6: WriteMatchedTo

		protected virtual void WriteMatchedTo(SqlWriter writer) {
			if (string.IsNullOrEmpty(NotMatchedBy)) {
				writer.WriteKeyword("MATCHED");
			} else {
				writer.WriteKeyword("NOT MATCHED BY ");
				writer.WriteKeyword(NotMatchedBy);
			}
			writer.WriteScript(predicate, WhitespacePadding.None, w => w.WriteOperator(" AND "), null);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:MergeWhenMatched.cs

示例7: WriteTo

		public override void WriteTo(SqlWriter writer) {
			if (HasValue) {
				writer.WriteKeyword("USING XML INDEX ");
				writer.WriteScript(indexName, WhitespacePadding.None);
				writer.WriteLine();
				writer.WriteKeyword("FOR ");
				writer.Write(IndexForSpecifier);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:9,代码来源:IndexUsing.cs

示例8: WriteTo

		public override void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteKeyword("BEGIN");
			writer.WriteLine();
			using (writer.Indent()) {
				writer.WriteScriptSequence(statements, WhitespacePadding.None, w => w.WriteLine(";"));
				writer.WriteLine(";");
			}
			writer.WriteKeyword("END");
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:10,代码来源:StatementBlock.cs

示例9: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteKeyword(" TRIGGER ");
			if (All) {
				writer.WriteKeyword("ALL");
			} else {
				writer.WriteScriptSequence(triggerNames, WhitespacePadding.None, w => w.Write(", "));
			}
			writer.WriteKeyword(" ON ");
			writer.WriteScript(target, WhitespacePadding.None);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:10,代码来源:EnableDisableTriggerStatement.cs

示例10: WriteTo

		public override sealed void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteKeyword("WHEN ");
			using (writer.Indent()) {
				WriteMatchedTo(writer);
				writer.WriteKeyword(" THEN");
				writer.WriteLine();
				writer.WriteScript(operation, WhitespacePadding.None);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:10,代码来源:MergeWhenMatched.cs

示例11: WriteTo

		public override void WriteTo(SqlWriter writer) {
			base.WriteTo(writer);
			writer.WriteEnum(tableCheck, WhitespacePadding.SpaceAfter);
			WriteCheckOperation(writer);
			writer.WriteKeyword(" CONSTRAINT ");
			if (constraintName != null) {
				writer.WriteScript(constraintName, WhitespacePadding.None);
			} else {
				writer.WriteKeyword("ALL");
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:11,代码来源:AlterTableCheckConstraintStatementBase.cs

示例12: WriteTo

		public override void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteKeyword("DECLARE ");
			writer.WriteScript(variableName, WhitespacePadding.None);
			writer.WriteKeyword(" TABLE ");
			writer.Write('(');
			using (writer.Indent()) {
				writer.WriteScriptSequence(tableDefinitions, WhitespacePadding.NewlineBefore, w => w.Write(','));
			}
			writer.WriteLine();
			writer.Write(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:12,代码来源:DeclareTableStatement.cs

示例13: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteKeyword("FETCH ");
			writer.WriteScript(cursorPosition, WhitespacePadding.SpaceAfter);
			writer.WriteScript(cursorName, WhitespacePadding.None);
			if (destinationVariables.Count > 0) {
				using (writer.Indent()) {
					writer.WriteLine();
					writer.WriteKeyword("INTO ");
					writer.WriteScriptSequence(destinationVariables, WhitespacePadding.None, w => w.Write(", "));
				}
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:12,代码来源:FetchStatement.cs

示例14: WriteTo

		public override sealed void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteScript(queryOptions, WhitespacePadding.NewlineAfter);
			writer.WriteKeyword("INSERT ");
			using (writer.Indent()) {
				writer.WriteScript(topExpression, WhitespacePadding.SpaceAfter);
				writer.WriteLine();
				writer.WriteKeyword("INTO ");
				writer.WriteScript(destinationRowset, WhitespacePadding.None);
				WriteToInternal(writer);
				writer.WriteScript(QueryHint, WhitespacePadding.NewlineBefore);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:13,代码来源:InsertStatement.cs

示例15: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteKeyword("FOR XML ");
			writer.WriteKeyword(KindSpecifier);
			if (elementName != null) {
				writer.Write(" (");
				writer.WriteScript(elementName, WhitespacePadding.None);
				writer.Write(')');
			}
			if (directives.Count > 0) {
				writer.Write(", ");
				writer.WriteScriptSequence(directives, WhitespacePadding.None, w => w.Write(", "));
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:13,代码来源:ForXmlClause.cs


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