using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using HRHO_Utilities;
namespace HRHO_DAL
{
public abstract class DataProviderBase
{
protected DataProvider GetProvider()
{
DataProvider prov;
switch (ConfigurationManager.AppSettings["DataProvider"].ToString())
{
case "Odbc":
prov = DataProvider.Odbc;
break;
case "OleDb":
prov = DataProvider.OleDb;
break;
case "Oracle":
prov = DataProvider.Oracle;
break;
default:
prov = DataProvider.SqlServer;
break;
}
return prov;
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using HRHO_Utilities;
namespace HRHO_DAL
{
public abstract class DataProviderBase
{
protected DataProvider GetProvider()
{
DataProvider prov;
switch (ConfigurationManager.AppSettings["DataProvider"].ToString())
{
case "Odbc":
prov = DataProvider.Odbc;
break;
case "OleDb":
prov = DataProvider.OleDb;
break;
case "Oracle":
prov = DataProvider.Oracle;
break;
default:
prov = DataProvider.SqlServer;
break;
}
return prov;
}
}
}
No comments:
Post a Comment