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


C# SqlWriter类代码示例

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


SqlWriter类属于命名空间,在下文中一共展示了SqlWriter类的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: WriteNonGlobalInternal

		internal void WriteNonGlobalInternal(SqlWriter writer) {
			if (!quote) {
				writer.Write(Value);
			} else {
				base.WriteToInternal(writer, false);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:CursorName.cs

示例3: WriteTo

		public override void WriteTo(SqlWriter writer) {
			WriteCommentsTo(writer);
			writer.WriteKeyword("CREATE XML SCHEMA COLLECTION ");
			writer.WriteScript(xmlSchemaCollectionName, WhitespacePadding.None);
			writer.WriteKeyword(" AS ");
			writer.WriteScript(expression, WhitespacePadding.None);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:CreateXmlSchemaCollectionStatement.cs

示例4: WriteSql

 /// <summary>
 /// We delegate the writing of the fragment to the appropriate type.
 /// </summary>
 /// <param name="writer"></param>
 /// <param name="sqlGenerator"></param>
 public void WriteSql(SqlWriter writer, SqlGenerator sqlGenerator)
 {
   if (null != _sqlFragments)
   {
     foreach (object o in _sqlFragments)
     {
       string str = (o as String);
       if (null != str)
       {
         writer.Write(str);
       }
       else
       {
         ISqlFragment sqlFragment = (o as ISqlFragment);
         if (null != sqlFragment)
         {
           sqlFragment.WriteSql(writer, sqlGenerator);
         }
         else
         {
           throw new InvalidOperationException();
         }
       }
     }
   }
 }
开发者ID:rohitlodha,项目名称:DenverDB,代码行数:31,代码来源:SqlBuilder.cs

示例5: WriteToInternal

		protected internal override void WriteToInternal(SqlWriter writer, bool isPartOfQualifiedName) {
			Debug.Assert(!isPartOfQualifiedName);
			if (global) {
				writer.WriteKeyword("GLOBAL ");
			}
			WriteNonGlobalInternal(writer);
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:CursorName.cs

示例6: CreateAddColumnStatement

 public static Statement CreateAddColumnStatement(string tableName, Column column)
 {
     var writer = new SqlWriter();
     writer.Alter.Table.QuotedName(tableName).Add.Flush();
     WriteColumnDefinition(writer, column);
     return new Statement(writer.ToString(), Statement.StatementType.Text, Statement.ResultType.None);
 }
开发者ID:mikeobrien,项目名称:Gribble,代码行数:7,代码来源:SchemaWriter.cs

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

示例8: WriteToInternal

		protected internal override void WriteToInternal(SqlWriter writer, bool isPartOfQualifiedName) {
			if (IsWildcard) {
				writer.Write(Value);
			} else {
				base.WriteToInternal(writer, isPartOfQualifiedName);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:ColumnName.cs

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

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

示例11: ProcedureGenerator

 /// <summary>
 /// Initializes a new instance of the <see cref="ProcedureGenerator"/> class.
 /// </summary>
 /// <param name="table">The table.</param>
 public ProcedureGenerator(DatabaseTable table)
     : base(table)
 {
     SqlWriter = new SqlWriter(table, SqlType.Oracle);
     SqlWriter.InStoredProcedure = true;
     PackageName = "PACK_" + TableName;
 }
开发者ID:roadrunner75,项目名称:dbschemareader,代码行数:11,代码来源:ProcedureGenerator.cs

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

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

示例14: WriteToInternal

		protected internal override void WriteToInternal(SqlWriter writer, bool isPartOfQualifiedName) {
			if (isPartOfQualifiedName || (!IsBuiltinType)) {
				base.WriteToInternal(writer, isPartOfQualifiedName);
			} else {
				writer.WriteType(Value);
			}
		}
开发者ID:avonwyss,项目名称:bsn-modulestore,代码行数:7,代码来源:TypeName.cs

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


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