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


C# Dialect.QuoteForColumnName方法代码示例

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


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

示例1: ToSqlText

 public string ToSqlText(DataParameterCollection dpc, Dialect.DbDialect dd)
 {
     return string.Format("{0}.{1} {4} {2}.{3}",
         dd.QuoteForTableName(Table1),
         dd.QuoteForColumnName(Key1),
         dd.QuoteForTableName(Table2),
         dd.QuoteForColumnName(Key2),
         StringHelper.EnumToString(Comp));
 }
开发者ID:991899783,项目名称:DbEntry,代码行数:9,代码来源:JoinClause.cs

示例2: DetermineValueColumnName

		/// <summary>
		/// Determine the name of the column in which we will store the generator persistent value.
		/// Called during configuration.
		/// </summary>
		protected string DetermineValueColumnName(IDictionary<string, string> parms, Dialect.Dialect dialect)
		{
			// NHibernate doesn't seem to have anything resembling this ObjectNameNormalizer. Ignore that for now.
			//ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );
			string name = PropertiesHelper.GetString(ValueColumnParam, parms, DefaultValueColumn);
			//return dialect.quote( normalizer.normalizeIdentifierQuoting( name ) );

			return dialect.QuoteForColumnName(name);
		}
开发者ID:nhibernate,项目名称:nhibernate-core,代码行数:13,代码来源:TableGenerator.cs

示例3: GetQuotedName

		/// <summary>
		/// Gets the name of this Column in quoted form if it is necessary.
		/// </summary>
		/// <param name="d">
		/// The <see cref="Dialect.Dialect"/> that knows how to quote
		/// the column name.
		/// </param>
		/// <returns>
		/// The column name in a form that is safe to use inside of a SQL statement.
		/// Quoted if it needs to be, not quoted if it does not need to be.
		/// </returns>
		public string GetQuotedName(Dialect.Dialect d)
		{
			return IsQuoted ? d.QuoteForColumnName(name) : name;
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:15,代码来源:Column.cs

示例4: ToString

		public override string ToString(Dialect.DbDialect dd)
		{
			return dd.QuoteForColumnName( Key ) + " DESC";
		}
开发者ID:991899783,项目名称:DbEntry,代码行数:4,代码来源:DESC.cs

示例5: ToString

		public virtual string ToString(Dialect.DbDialect dd)
		{
			return dd.QuoteForColumnName( Key ) + " ASC";
		}
开发者ID:991899783,项目名称:DbEntry,代码行数:4,代码来源:ASC.cs


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