Example #1
0
        public IDatabase CreateDatabase(IMetaPopulation metaPopulation, bool init)
        {
            var configuration = new Adapters.Database.SqlClient.LongId.Configuration
            {
                ObjectFactory = this.ObjectFactory,
                CacheFactory = this.CacheFactory,
                Id = Guid.NewGuid(),
                ConnectionString = ConnectionString
            };
            var database = new Database(configuration);

            if (init)
            {
                database.Init();
            }

            return database;
        }
Example #2
0
        public override IDatabase CreateDatabase()
        {
            var configuration = new Adapters.Database.SqlClient.LongId.Configuration
            {
                ObjectFactory = this.ObjectFactory,
                CacheFactory = this.CacheFactory,
                Id = Guid.NewGuid(),
                ConnectionString = ConnectionString
            };
            var database = new Database(configuration);

            return database;
        }