/// <summary> /// Reads values from the supplied <see cref="IDictionary"/> object into /// properties of the current object. /// </summary> /// <param name="values">An <see cref="IDictionary"/> instance that contains /// the key/value pairs to be used as property values.</param> public override void Load(IDictionary values) { #region Init Properties if (values != null) { ProductCategoryId = (values["ProductCategoryId"] != null) ? (System.Int32)EntityUtil.ChangeType(values["ProductCategoryId"], typeof(System.Int32)) : (int)0; } #endregion }
/// <summary> /// Reads values from the supplied <see cref="IDictionary"/> object into /// properties of the current object. /// </summary> /// <param name="values">An <see cref="IDictionary"/> instance that contains /// the key/value pairs to be used as property values.</param> public override void Load(IDictionary values) { #region Init Properties if (values != null) { TestIssue117TableBid = (values["TestIssue117TableBid"] != null) ? (System.Int32)EntityUtil.ChangeType(values["TestIssue117TableBid"], typeof(System.Int32)) : (int)0; } #endregion }
/// <summary> /// Gets the value of the property with the specified name and returns /// it as a collection of objects. /// </summary> /// <param name="entity">An object instance.</param> /// <param name="propertyName">The property name.</param> /// <returns>A collection of objects.</returns> public static IList GetEntityList(Object entity, String propertyName) { Object list = EntityUtil.GetPropertyValue(entity, propertyName); return(GetEntityList(list)); }