First I am using AutoMappings and not FluentMappings, for this
reason<http://iamnotmyself.com/2011/06/22/using-fluent-nhibernate-classmaps-youre-doing-it-wrong/#comment-902930099>
.

I have a class with a property that is an interface:
*
Example*: public virtual IUser CreateBy { get; set; }
in my Entidade Domain class <http://chopapp.com/#akvb5fgh>

*
Concret *class:
Usuario <http://chopapp.com/#eop1udps>
Several classes of my domain
implements IAuditable class <http://chopapp.com/#gbcq3io>
. I need a way to map all

I created a convention <http://chopapp.com/#eubzshlq> for classes that
implement IAuditable with this configuration <http://chopapp.com/#6e830xr6>.

Test Name: {OMITED}
Test FullName: {OMITED}
Test Source: {PATH OMITED}.Integration.Test\UsuarioTest.cs : line 17
Test Outcome: Failed
Test Duration: 0:00:00,849699

Result Message:
Initialization method {OMITED} Integration.Test.UsuarioTest.SetUp threw
exception. FluentNHibernate.Cfg.FluentConfigurationException:
FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete
configuration was used while creating a SessionFactory. Check
PotentialReasons collection, and InnerException for more detail.

 ---> NHibernate.MappingException: An association from the table CheckListItem
<http://chopapp.com/#6r7h2fox>refers to an unmapped class:
BindSolution.Framework.Domain.IUser.
Result StackTrace: {OMITED }

Thanks.

Riderman de Sousa Barbosa <http://about.me/ridermansb>

Web Developer | MCPD Certify

Skype.: 4042-6002 | Cel.: (31) 8681-1986
bindsolution.com
Microsoft Parner Network

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to