Hi all, I am getting this error:
http://d4dilip.wordpress.com/2011/09/28/nhibernate-error-incorrect-syntax-near-the-keyword-function/ The above post suggests wrapping the table/column name with '[name]' but how do I do this using automapping? I can't change my property names. I am currently using the following configuration code: private static ISessionFactory SessionFactory { get { if (_sessionFactory == null) { _sessionFactory = Fluently .Configure() .Database( MsSqlConfiguration.MsSql2008 .ConnectionString(Properties.Settings.Default.DataSourceConnectionString) ) .Mappings(x => x.AutoMappings.Add( AutoMap.AssemblyOf<EntityBase<int, Form>>() .Where(y => y.Namespace.StartsWith("Domain.Model") ) .IgnoreBase<EntityBase<int, Form>>() .Conventions.Add( DefaultCascade.All(), ConventionBuilder.HasMany.Always(z => z.Cascade.AllDeleteOrphan()) ) ) ) // Always overwrite db .ExposeConfiguration(config => new SchemaExport(config).Create(true, true) ) .BuildSessionFactory(); } return _sessionFactory; } } -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en.
