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);
}
}