ah sorry... the "auto-quote" of NH is completely different than auto-quote of FNH. In NH we are checking the RDBMS's reserved-words and not quote everything
2010/3/13 Fabio Maulo <[email protected]> > http://fabiomaulo.blogspot.com/2009/06/auto-quote-tablecolumn-names.html > > <http://fabiomaulo.blogspot.com/2009/06/auto-quote-tablecolumn-names.html> > and > http://fabiomaulo.blogspot.com/2009/06/from-where-start-to-implements.html > > 2010/3/13 viko <[email protected]> > > Hello! I'm using fluentnhibernate with PostgreSQL. PosrgreSQL version >> is 8.4. >> My code for create ISessionFactory: >> >> public static ISessionFactory CreateSessionFactory() >> { >> string connectionString = >> >> ConfigurationManager.ConnectionStrings["PostgreConnectionString"].ConnectionString; >> IPersistenceConfigurer config = >> PostgreSQLConfiguration.PostgreSQL82.ConnectionString(connectionString); >> >> FluentConfiguration configuration = Fluently >> .Configure() >> .Database(config) >> .Mappings(m => >> >> m.FluentMappings.Add(typeof(ResourceMap)) >> .Add(typeof(TaskMap)) >> .Add(typeof(PluginMap))); >> var nhibConfig = configuration.BuildConfiguration(); >> SchemaMetadataUpdater.QuoteTableAndColumns(nhibConfig); >> return configuration.BuildSessionFactory(); >> } >> >> When I'm execute code at line >> SchemaMetadataUpdater.QuoteTableAndColumns(nhibConfig); throw error: >> System.NotSupportedException: Specified method is not supported. Help >> me, please! I'm very need for solution. >> Best regards >> >> -- >> 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]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> >> > > > -- > Fabio Maulo > > -- Fabio Maulo -- 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.
