public AutoPersistenceModel Generate()
        {
            var mappings = new AutoPersistenceModel();

            mappings = AutoMap.AssemblyOf<Domain.Entity>();
            mappings.Where(GetAutoMappingFilter);
            mappings.Conventions.Setup(GetConventions());
            mappings.UseOverridesFromAssemblyOf<AutoPersistenceModelGenerator>();
            mappings.Setup(GetSetup());
            mappings.OverrideAll(x => x.IgnoreProperties(z => z.PropertyType.IsSubclassOf(typeof(Enumeration))));

            mappings.IgnoreBase<Domain.Entity>();
            mappings.UseOverridesFromAssemblyOf<AutoPersistenceModelGenerator>();

            return mappings;
        }
 public void Alter(AutoPersistenceModel model)
 {
     model.Where(IsMappable);
 }
 public void Alter(AutoPersistenceModel model)
 {
     model.Where(IsMappable);
 }
 public void Alter(AutoPersistenceModel model)
 {
     model.Where(x => IsIndex(x) || IsDocument(x));
 }
 public void Alter(AutoPersistenceModel model)
 {
     model.Where(x => IsIndex(x) || IsDocument(x));
 }