Exemplo n.º 1
0
        public static AutoPersistenceModel CreateMappings()
        {
            var cfg = new DbMapConfiguration();

            return(AutoMap.Assemblies(cfg, AppDomain.CurrentDomain.GetAssemblies())
                   .Conventions.Add(DefaultLazy.Never()));
            //.Where(t => t.Namespace == "CQRS2012");
        }
Exemplo n.º 2
0
        public static AutoPersistenceModel CreateMappings()
        {
            var cfg = new DbMapConfiguration();

            return AutoMap.Assemblies(cfg, AppDomain.CurrentDomain.GetAssemblies())
                          .Conventions.Add(DefaultLazy.Never());
            //.Where(t => t.Namespace == "CQRS2012");
        }