using Chloe; using Chloe.Infrastructure; using Chloe.RDBMS.DDL; using Chloe.SQLite; using Chloe.SQLite.DDL; using DNSD_DB.Mapper; namespace DNSD_DB { public class SqlLiteTool { public static void CreateTable(string db) { DbConfiguration.UseTypeBuilders(typeof(StudentMap)); IDbContext dbContext = new SQLiteContext(new SQLiteConnectionFactory(db)); new SQLiteTableGenerator(dbContext).CreateTables(TableCreateMode.CreateIfNotExists); } } }