private IDbHandler GetDbHandler() { // todo: support MariaDb etc. Issue #16 IDbHandler dbHandler; if (GenerateViews) { dbHandler = new SqlServerViewHandler(); } else { dbHandler = new SqlServerHandler(); } dbHandler.NameFieldLength = NameFieldLength; dbHandler.TableNamePrefix = TableNamePrefix; dbHandler.TableNameSuffix = TableNameSuffix; dbHandler.UseTransaction = UseTransaction; dbHandler.Schema = Schema; dbHandler.GenerateDescription = GenerateDescription; dbHandler.DoNotGenerateConstraints = DoNotGenerateConstraints; return(dbHandler); }
private IDbHandler GetDbHandler() { IDbHandler dbHandler = new SqlServerHandler { NameFieldLength = NameFieldLength, TableNamePrefix = TableNamePrefix, TableNameSuffix = TableNameSuffix, }; return(dbHandler); }
private IDbHandler GetDbHandler() { // todo: support MariaDb etc. Issue #16 IDbHandler dbHandler = new SqlServerHandler { NameFieldLength = NameFieldLength, TableNamePrefix = TableNamePrefix, TableNameSuffix = TableNameSuffix, UseTransaction = UseTransaction, }; return(dbHandler); }
private IDbHandler GetDbHandler() { // todo: support MariaDb etc. Issue #16 IDbHandler dbHandler = new SqlServerHandler { NameFieldLength = NameFieldLength, TableNamePrefix = TableNamePrefix, TableNameSuffix = TableNameSuffix, UseTransaction = UseTransaction, }; return dbHandler; }