本文整理汇总了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));
}
示例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);
}
示例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;
}
示例4: ToString
public override string ToString(Dialect.DbDialect dd)
{
return dd.QuoteForColumnName( Key ) + " DESC";
}
示例5: ToString
public virtual string ToString(Dialect.DbDialect dd)
{
return dd.QuoteForColumnName( Key ) + " ASC";
}