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);
        }
Пример #2
0
        private IDbHandler GetDbHandler()
        {
            IDbHandler dbHandler = new SqlServerHandler
            {
                NameFieldLength = NameFieldLength,
                TableNamePrefix = TableNamePrefix,
                TableNameSuffix = TableNameSuffix,
            };

            return(dbHandler);
        }
Пример #3
0
        private IDbHandler GetDbHandler()
        {
            // todo: support MariaDb etc. Issue #16

            IDbHandler dbHandler = new SqlServerHandler
            {
                NameFieldLength = NameFieldLength,
                TableNamePrefix = TableNamePrefix,
                TableNameSuffix = TableNameSuffix,
                UseTransaction  = UseTransaction,
            };

            return(dbHandler);
        }
Пример #4
0
		private IDbHandler GetDbHandler()
		{
			// todo: support MariaDb etc. Issue #16

			IDbHandler dbHandler = new SqlServerHandler
			{
				NameFieldLength = NameFieldLength,
				TableNamePrefix = TableNamePrefix,
				TableNameSuffix = TableNameSuffix,
				UseTransaction = UseTransaction,
			};
			return dbHandler;
		}