/// <summary> /// Create a Command from stored procedure. /// </summary> /// <param name="db">IDB.</param> /// <param name="cmdStr">sql procedure's name to call.</param> /// <returns></returns> public static SqlDAUtil FromProcedure(SqlDB db, string cmdStr) { return(new SqlDAUtil(db, CommandType.StoredProcedure, cmdStr)); }
public static SqlDAUtil FromText(this SqlDB db, string cmdStr) { return(SqlDAUtil.FromText(db, cmdStr)); }
/// <summary> /// Create a Command from sql text. /// </summary> /// <param name="db">IDB.</param> /// <param name="cmdStr">command string.</param> /// <returns></returns> public static SqlDAUtil FromText(SqlDB db, string cmdStr) { return(new SqlDAUtil(db, CommandType.Text, cmdStr)); }
public static SqlDAUtil FromProcedure(this SqlDB db, string procedure) { return(SqlDAUtil.FromProcedure(db, procedure)); }