public object GetValue(XDataField xf, params object[] keyValues) { _CheckKeyField(); string strWhere = GetKeyConditionString(true, keyValues); string sSql = "Select " + xf.NameStr() + " from " + this.ViewName + strWhere; return(this.GetValue(sSql)); }
public object GetMinKey(XDataField xf, object objWhere) { string sSql = "Select Min(" + xf.NameStr() + ") from " + this.ViewName + GetWhereStr(objWhere); return(this.GetValue(sSql)); }