/// <summary> /// Set the attribute. /// </summary> /// <param name="attributeName">The attribute name.</param> /// <param name="val">The value to set.</param> protected virtual void SetAttribute(string attributeName, Object val) { object objVal = val; if (val is DateTime) { // Convert Date & Time to UTC format as OpenROAD expects them in this format objVal = ((DateTime)val).ToUniversalTime(); } ORByRefParameter.SetAttribute(attributeName, ref val); }
/// <summary> /// Return the number of rows in an OpenROAD byref parameter object array. /// </summary> /// <param name="arrayName">The fully qualified name of the array in the PDO.</param> /// <returns>The number of rows (not zero based).</returns> protected virtual int GetLastRow(string arrayName) { return(ORByRefParameter.LastRow(arrayName)); }
/// <summary> /// Evaluate if a parameter is null. /// </summary> /// <param name="attributeName">The attribute to evaluate.</param> /// <returns>Wheteher the attribute parameter is null or not.</returns> protected bool IsParameterNull(string attributeName) { return(ORByRefParameter.IsNull(attributeName) == 1); }