public override void PreInitialize(IAbpInitializationContext initializationContext)
 {
     base.PreInitialize(initializationContext);
     initializationContext.GetModule <AbpDataModule>().AddMapping(
         m => m.FluentMappings.AddFromAssembly(Assembly.GetAssembly(typeof(UserMap)))
         ); //TODO: Remove this to Core.Data and remove fluent nhibernate dependency?
 }
        public override void PreInitialize(IAbpInitializationContext initializationContext)
        {
            base.PreInitialize(initializationContext);

            initializationContext.GetModule<AbpNHibernateModule>()
                .Configuration
                .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()));
        }
 public override void PreInitialize(IAbpInitializationContext initializationContext)
 {
     base.PreInitialize(initializationContext);
     var connStr = ConfigurationManager.ConnectionStrings["Taskever"].ConnectionString;
     initializationContext.GetModule<AbpNHibernateModule>().Configuration
         .Database(MsSqlConfiguration.MsSql2008.ConnectionString(connStr))
         .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()));
 }
        public override void PreInitialize(IAbpInitializationContext initializationContext)
        {
            base.PreInitialize(initializationContext);

            initializationContext.GetModule <AbpNHibernateModule>().Configuration
            .Mappings(
                m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly())
                );
        }
        public override void PreInitialize(IAbpInitializationContext initializationContext)
        {
            base.PreInitialize(initializationContext);
            var connStr = ConfigurationManager.ConnectionStrings["Taskever"].ConnectionString;

            initializationContext.GetModule <AbpNHibernateModule>().Configuration
            .Database(MsSqlConfiguration.MsSql2008.ConnectionString(connStr))
            .Mappings(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()));
        }
Exemple #6
0
 public override void PreInitialize(IAbpInitializationContext initializationContext)
 {
     base.PreInitialize(initializationContext);
     initializationContext.GetModule <AbpDataModule>().AddMapping(m => m.FluentMappings.AddFromAssembly(Assembly.GetExecutingAssembly()));
 }