That will only insert quotes where necessary, for keyword conflicts, not for
all tables.
On Sep 20, 2011 12:41 PM, "Ricardo Peres" <[email protected]> wrote:
> Isn't that what KeywordsAutoImport does?
> For example:
>
> NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration()
> .DataBaseIntegration(db =>
> {
> db.BatchSize = 500;
> db.ConnectionStringName = connectionStringName;
> db.Dialect<TDialect>();
> db.Driver<TDriver>();
> db.HqlToSqlSubstitutions = "true 1, false 0, yes 'Y', no 'N'";
> db.IsolationLevel = System.Data.IsolationLevel.ReadCommitted;
> db.KeywordsAutoImport = Hbm2DDLKeyWords.AutoQuote;
> db.SchemaAction = SchemaAutoAction.Validate;
> })
>
> From the documentation:
>
> auto-quote : imports all RDBMS KeyWords and auto-quote all table-names/
> column-names .
>
>
> On Sep 19, 10:10 pm, Gunnar Liljas <[email protected]> wrote:
>> Use backticks, not brackets.
>>
>> table="`FOO`"
>>
>> No, there's no way to make it the default. Unfortunately...
>>
>> /G
>>
>> 2011/9/19 sam <[email protected]>
>>
>>
>>
>>
>>
>>
>>
>> > Ya that's what I've been doing but that's really a dialect level
>> > information that i would have preferred to have the nHibernate dialect
>> > figure out if possible. Could the dialect not quote all database
objects by
>> > default?
>>
>> > --
>> > You received this message because you are subscribed to the Google
Groups
>> > "nhusers" group.
>> > To view this discussion on the web visit
>> >https://groups.google.com/d/msg/nhusers/-/c9untys0jvcJ.
>>
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
"nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected].
> For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to