Ejemplo n.º 1
0
 public Server()
 {
     if (_providerType == DataProviderType.SqlClient)
     {
         _strategy = new DatabaseStrategySQLServer();
     }
     else if (_providerType == DataProviderType.MySql)
     {
         _strategy = new DatabaseStrategyMySQL();
     }
     else if (_providerType == DataProviderType.PostgresSql)
     {
         _strategy = new DatabaseStrategyPostgres();
     }
     else if (_providerType == DataProviderType.Oracle)
     {
         _strategy = new DatabaseStrategyOracle();
     }
 }
Ejemplo n.º 2
0
		public Server()
		{
			if(_providerType == DataProviderType.SqlClient)
			{
				_strategy = new DatabaseStrategySQLServer();
			}
			else if(_providerType == DataProviderType.MySql)
			{
				_strategy = new DatabaseStrategyMySQL();
			}
			else if(_providerType == DataProviderType.PostgresSql)
			{
				_strategy = new DatabaseStrategyPostgres();
			}
			else if(_providerType == DataProviderType.Oracle)
			{
				_strategy = new DatabaseStrategyOracle();
			}
		}