public DepartmentRepository(IDatabaseType databaseType) { if (databaseType == null) { throw new ArgumentNullException("databaseType is null"); } _context = new FBFDbContext(databaseType); }
public void Create() { var connection = new EfSQLite("SQLiteDb"); using (var ams = new FBFDbContext(connection)) { if (ams.Database.Exists()) { ams.Database.Delete(); } ams.Database.Create(); } }