Пример #1
0
        public ConnectionFactory() : base("seeds.db", SqliteDialect.Provider)
        {
            DialectProvider.GetDateTimeConverter().DateStyle = DateTimeKind.Utc;

            using (var db = this.Open())
            {
                db.CreateTableIfNotExists <UserSeedEntity>();
            }
        }
Пример #2
0
        public ConnectionFactory() : base("seeds.db", SqliteDialect.Provider)
        {
            DialectProvider.GetDateTimeConverter().DateStyle = DateTimeKind.Utc;

            using (var db = this.Open())
            {
                db.CreateTableIfNotExists <UserSeedEntity>();
                if (!db.ColumnExists <UserSeedEntity>(x => x.Version))
                {
                    db.AddColumn <UserSeedEntity>(x => x.Version);
                }
                db.CreateTableIfNotExists <GuildModEntity>();
                db.CreateTableIfNotExists <TournamentChannelEntity>();
            }
        }