According to http://www.connectionstrings.com/firebird your connection
string is wrong:

 

User=SYSDBA;Password=masterkey;Database=SampleDatabase.fdb;DataSource=localh
ost; Port=3050;Dialect=3; Charset=NONE;Role=;Connection
lifetime=15;Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet
Size=8192;ServerType=0;

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Victor Hugo
Sent: Thursday, August 09, 2012 5:23 PM
To: [email protected]
Subject: [fluent-nhib] Fluent + FirebirdConfiguration

 

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.

-- 
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.

Reply via email to