Hi people,
I am trying to create a connection with Firebird DB, but with a exactly
equals configuration to MySQLConfiguration appointing to
FirebirdConfiguration, and i am getting some error...
I don't found in any place about my question...
Methods:
> private static void startSession(){
>
> String ConnectionString
>> ="Server=localhost;Database=C:\\Local\\EmailSender.fdb;User=SYSDBA;Password=masterkey;";
>
> var firebirdCfg = new FirebirdConfiguration();
>
> _sessionFactory = Fluently.Configure()
>
> .Database(firebirdCfg.ConnectionString(c => c.Is(ConnectionString))
>
> .ShowSql())
>
> .Mappings(x =>
>>
>> x.FluentMappings.AddFromAssemblyOf<Cliente>())
>>
>> .ExposeConfiguration(BuildSchema)
>
> .BuildSessionFactory();
>
> }
>
>
I am getting this error:
> An invalid or incomplete configuration was used while creating a
> SessionFactory. Check PotentialReasons collection, and InnerException for
> more detail.
With this InnerStackTrace:
em FirebirdSql.Data.Schema.FbSchemaFactory.GetSchema(FbConnection
> connection, String collectionName, String[] restrictions)
> em
> FirebirdSql.Data.FirebirdClient.FbConnectionInternal.GetSchema(String
> collectionName, String[] restrictions)
> em FirebirdSql.Data.FirebirdClient.FbConnection.GetSchema(String
> collectionName, String[] restrictions)
> em FirebirdSql.Data.FirebirdClient.FbConnection.GetSchema(String
> collectionName)
> em NHibernate.Dialect.Schema.AbstractDataBaseSchema.GetReservedWords()
> em
> NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
> dialect, IConnectionHelper connectionHelper)
> em NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
> sessionFactory)
> em NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
> mapping, Settings settings, EventListeners listeners)
> em NHibernate.Cfg.Configuration.BuildSessionFactory()
> em FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
can help? Pleasee!!!
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/fluent-nhibernate/-/kd6gciyyU88J.
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.