Esempio n. 1
0
        protected virtual void TestFixtureSetUp()
        {
            LogManager.Adapter = new ConsoleOutLoggerFA(new NameValueCollection());

            ConfigurationEngine = new DefaultConfigurationEngine();
            ConfigurationEngine.RegisterInterpreter(new XmlConfigurationInterpreter("SqlMap.config"));

            IMapperFactory mapperFactory = ConfigurationEngine.BuildMapperFactory();

            SessionFactory = ConfigurationEngine.ModelStore.SessionFactory;
            DataMapper     = ((IDataMapperAccessor)mapperFactory).DataMapper;
        }
Esempio n. 2
0
        protected virtual void TestFixtureSetUp()
        {
            LogManager.Adapter = new ConsoleOutLoggerFA(new NameValueCollection());
            configurationSetting = new ConfigurationSetting();
            configurationSetting.Properties.Add("collection2Namespace", "MyBatis.DataMapper.Sqlite.Test.Domain.LineItemCollection2, MyBatis.DataMapper.Sqlite.Test");
            configurationSetting.Properties.Add("nullableInt", "int?");

            ConfigurationEngine = new DefaultConfigurationEngine(configurationSetting);
            ConfigurationEngine.RegisterInterpreter(new XmlConfigurationInterpreter("SqlMap.config"));
            ConfigurationEngine.RegisterModule(new AliasModule());

            IMapperFactory mapperFactory = ConfigurationEngine.BuildMapperFactory();
            sessionFactory = ConfigurationEngine.ModelStore.SessionFactory;
            dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper;
        }
Esempio n. 3
0
        protected virtual void TestFixtureSetUp()
        {
            LogManager.Adapter   = new ConsoleOutLoggerFA(new NameValueCollection());
            configurationSetting = new ConfigurationSetting();
            configurationSetting.Properties.Add("collection2Namespace", "MyBatis.DataMapper.Sqlite.Test.Domain.LineItemCollection2, MyBatis.DataMapper.Sqlite.Test");
            configurationSetting.Properties.Add("nullableInt", "int?");

            ConfigurationEngine = new DefaultConfigurationEngine(configurationSetting);
            ConfigurationEngine.RegisterInterpreter(new XmlConfigurationInterpreter("SqlMap.config"));
            ConfigurationEngine.RegisterModule(new AliasModule());

            IMapperFactory mapperFactory = ConfigurationEngine.BuildMapperFactory();

            sessionFactory = ConfigurationEngine.ModelStore.SessionFactory;
            dataMapper     = ((IDataMapperAccessor)mapperFactory).DataMapper;
        }