public virtual int UpdateCustomField(object[] parms, string sql) { switch (ConnectionName) { case "Default": return(Convert.ToInt32(DbAdapter1.ExcecuteScalar(sql, false, parms))); case "Inside": return(Convert.ToInt32(DbAdapter2.ExcecuteScalar(sql, false, parms))); default: return(Convert.ToInt32(DbAdapter1.ExcecuteScalar(sql, false, parms))); } }
public virtual object GetSingleData(List <string> parms, string storeProcedure) { switch (ConnectionName) { case "Default": return(DbAdapter1.ExcecuteScalar(storeProcedure, true, parms.ToArray())); case "Inside": return(DbAdapter2.ExcecuteScalar(storeProcedure, true, parms.ToArray())); default: return(DbAdapter1.ExcecuteScalar(storeProcedure, true, parms.ToArray())); } }