HI , i need to conect in Informix Database, but i received a error message :
"An invalid or incomplete configuration was used while creating a 
SessionFactory. Check PotentialReasons collection, and InnerException for 
more detail."

there is my code to getfactory:

                        ISessionFactory factory = Fluently.Configure()
                                         .Database(
                               IfxSQLIConfiguration
                              .Informix1000
                              
.Provider<NHibernate.Connection.DriverConnectionProvider>()
                              .Driver<NHibernate.Driver.IfxDriver>()
                              .Dialect<NHibernate.Dialect.InformixDialect>()
                              .ConnectionString(c => 
c.FromConnectionStringWithKey(databaseKey))
                              .ShowSql())
                              .Mappings(x => 
x.FluentMappings.AddFromAssemblyOf<TvLoginMapping>()
                              
.Conventions.AddFromAssemblyOf<CustomTypeConvention>()
                              )
                              .BuildSessionFactory();
                        factories.Add(databaseKey, factory);

and there is my mapping:

    public class TvLoginMapping : ClassMap<TvLogin>
    {
        public TvLoginMapping()
        {
            this.Table("tvlogin");
            this.Id(X => X.u4976_38748);
            this.Map(X => X.cdlogin);
            this.Map(X => X.nrgrafico);
        }
    }



-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to