public clsDataBaseLayer(string strConnect, string dataType)
{
if (dataType.ToUpper() == "ORACLE")
{
this.ConnectionString = Get_ConnectionString(strConnect);
}
else
{
this.ConnectionString = strConnect;
}
this.DbType = dataType;
}
public clsDataBaseLayer()
{
try
{
this.dbType = ConfigurationSettings.AppSettings["DataType"];
if (this.dbType.ToUpper() == "ORACLE")
{
this.connectionString = Get_ConnectionString(ConfigurationSettings.AppSettings["ConnectionString"]);
}
else
{
this.connectionString = ConfigurationSettings.AppSettings["ConnectionString"];
}
}
catch (System.Exception ex)
{
throw new Exception(ex.Message);
}
}