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


C# SqlWriter.WriteFunction方法代码示例

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


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

示例1: WriteToInternal

		protected internal override void WriteToInternal(SqlWriter writer, bool isPartOfQualifiedName) {
			if (IsBuiltinFunction) {
				if ((writer.Engine == DatabaseEngine.SqlAzure) && (Value.Equals("NEWSEQUENTIALID", StringComparison.OrdinalIgnoreCase))) {
					writer.WriteFunction(ScriptParser.GetBuiltinFunctionName("NEWID"));
				} else {
					writer.WriteFunction(Value);
				}
			} else {
				base.WriteToInternal(writer, true);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:11,代码来源:FunctionName.cs

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

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

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

示例5: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteFunction("OPENXML");
			writer.Write('(');
			writer.WriteScript(variableName, WhitespacePadding.None);
			writer.Write(", ");
			stringValue.WriteTo(writer);
			if (flags != 0) {
				writer.Write(", ");
				writer.WriteKeyword(flags.ToString(NumberFormatInfo.InvariantInfo));
			}
			writer.Write(')');
			writer.WriteScript(schema, WhitespacePadding.SpaceBefore);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:13,代码来源:OpenXmlFunction.cs

示例6: WriteTo

		public override void WriteTo(SqlWriter writer) {
			writer.WriteFunction("OBJECT_ID");
			writer.Write('(');
			using (StringWriter nameWriter = new StringWriter(CultureInfo.InvariantCulture)) {
				objectName.WriteTo(new SqlWriter(nameWriter, writer.Engine, SqlWriterMode.NoComments));
				new StringLiteral(nameWriter.ToString(), unicodeObjectName, null).WriteTo(writer);
			}
			if (objectType != null) {
				writer.Write(", ");
				objectType.WriteTo(writer);
			}
			writer.Write(')');
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:13,代码来源:ObjectIdFunction.cs

示例7: WriteToInternal

		protected internal override void WriteToInternal(SqlWriter writer, bool isPartOfQualifiedName) {
			writer.WriteFunction(Value);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:3,代码来源:SpecialColumnName.cs


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