Esempio n. 1
0
		public Table()
		{
		    switch (Server.ProviderType)
		    {
		        case DataProviderType.SqlClient:
		            _strategy = new ColumnStrategySQLServer();
		            break;
		        case DataProviderType.MySql:
		            _strategy = new ColumnStrategyMySQL();
		            break;
		        case DataProviderType.PostgresSql:
		            _strategy = new ColumnStrategyPostgres();
		            break;
		        case DataProviderType.Oracle:
		            _strategy = new ColumnStrategyOracle();
		            break;
		    }
		}
Esempio n. 2
0
 public Table()
 {
     if(Server.ProviderType == DataProviderType.MSSQL)
     {
         _strategy = new ColumnStrategySQLServer();
     }
     else if(Server.ProviderType == DataProviderType.MySql)
     {
         _strategy = new ColumnStrategyMySQL();
     }
     else if(Server.ProviderType == DataProviderType.PostgresSql)
     {
         _strategy = new ColumnStrategyPostgres();
     }
     else if(Server.ProviderType == DataProviderType.Oracle)
     {
         _strategy = new ColumnStrategyOracle();
     }
 }
Esempio n. 3
0
 public Table()
 {
     if (Server.ProviderType == DataProviderType.MSSQL)
     {
         _strategy = new ColumnStrategySQLServer();
     }
     else if (Server.ProviderType == DataProviderType.MySql)
     {
         _strategy = new ColumnStrategyMySQL();
     }
     else if (Server.ProviderType == DataProviderType.PostgresSql)
     {
         _strategy = new ColumnStrategyPostgres();
     }
     else if (Server.ProviderType == DataProviderType.Oracle)
     {
         _strategy = new ColumnStrategyOracle();
     }
 }
Esempio n. 4
0
        public Table()
        {
            switch (Server.ProviderType)
            {
            case DataProviderType.SqlClient:
                _strategy = new ColumnStrategySQLServer();
                break;

            case DataProviderType.MySql:
                _strategy = new ColumnStrategyMySQL();
                break;

            case DataProviderType.PostgresSql:
                _strategy = new ColumnStrategyPostgres();
                break;

            case DataProviderType.Oracle:
                _strategy = new ColumnStrategyOracle();
                break;
            }
        }