Пример #1
0
        private HbmMapping GetMappingWithParentInCompo()
        {
            var mapper = new ConventionModelMapper();

            mapper.Class <MyClass>(x =>
            {
                x.Id(c => c.Id);
                x.Component(c => c.Compo);
            });
            mapper.Component <MyCompo>(x =>
            {
                x.Property(c => c.Something);
            });
            return(mapper.CompileMappingForAllExplicitAddedEntities());
        }