This was presented by Hudson Akridge. He contributes to Fluent NHibernate.
- Automapping
- the classes need to be public (classes were A and B)
- all properties need to be virtual
- in the configuration
Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory())
.Mappings(mapping => mapping.AutoMappings.Add(AutoMap.AssemblyOf<A>().Where(x=>x.Namespace == “…”))
.ExportTo(Directory.GetCurrentDirectory()))
.BuildConfiguration(); - Fluent Mapping
- Needs a parameterless constructor
- Nested Expression Exposition
- Nested Mapping
- Reveal using string based names
- www.fluentnhibernate.org
- http://github.com/jagregory/fluent-nhibernate
The talk was given to the Chicago ALT.NET group back in July 2009. You can catch the video here: http://chicagoalt.net/event/July2009Meeting060withFluentNHibernate.
No comments:
Post a Comment