An invalid or incomplete configuration was used while creating a
SessionFactory. Check PotentialReasons collection, and InnerException for
more detail.



2015-03-03 6:43 GMT-03:00 <fluent-nhibernate@googlegroups.com>:

>     fluent-nhibernate@googlegroups.com
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/fluent-nhibernate/topics>
>   Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
>   Topic digest
>  View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/fluent-nhibernate/topics>
>
>    -  Problem FluentNhibernate and Informix Database
>    <#14bdf047b2f9f2fe_group_thread_0> - 1 Update
>
>   Problem FluentNhibernate and Informix Database
> <http://groups.google.com/group/fluent-nhibernate/t/bd38f8b3f6e1e3c3?utm_source=digest&utm_medium=email>
>   Igor Monteiro <igorandrademonte...@gmail.com>: Mar 02 12:10PM -0800
>
> 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);
> }
> }
>   Back to top <#14bdf047b2f9f2fe_digest_top>
>    You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/fluent-nhibernate/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to fluent-nhibernate+unsubscr...@googlegroups.com.
>

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