Hi Craig, Sorry for taking so long to get back to you. I've just pushed some changes up to github that should hopefully fix the issues you've been having with the example project. 3000+ tests, but there's always room for stupid developers ;)
James On Tue, May 4, 2010 at 1:34 AM, Craig Gardiner <[email protected]>wrote: > I have downloaded the latest src from github and tried to run the Automap > example console app, however it throws an exception. > > Inner exception detail - > > The entity 'Location' doesn't have an Id mapped. Use the Id method to map > your identity property. For example: Id(x => x.Id). > > > > Looks like ‘Location’ type is setup as a component correctly, see below. > > public override bool IsComponent(Type type) > > { > > // override this method to specify which types should be > treated as components > > // if you have a large list of types, you should consider > maintaining a list of them > > // somewhere or using some form of conventional and/or > attribute design > > return type == typeof(Location); > > } > > > > Any ideas? > > > > All 3993 unit tests pass. Huge number of tests, great work J. > > > > My aim is to use Automapping (awesome concept) on a new green fields > project. I’m familiar with NH and using XML mappings, but why bother using > XML mappings if Automap can do the job. I’ve done some simple spike tests to > view the XML files and DB schemas generated for our Entities. The > AutomapConfig was pretty easy once I started using the latestr API’s and > downloaded the latest code from github. > > However I struggled with the setup of the Conventions, and still have > issues with some of them; I’ll create a separate email for this. > > > > Thanks again! Awesome work from the Fluent NH team! > > > > Regards, > > Craig Gardiner. > > -- > 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]<fluent-nhibernate%[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.
