/// <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)
            {
                AutoId = (values["AutoId"] != null) ? (System.Int32)EntityUtil.ChangeType(values["AutoId"], typeof(System.Int32)) : (int)0;
            }

            #endregion
        }
Exemplo n.º 2
0
        /// <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)
            {
                DepartmentName = (values["DepartmentName"] != null) ? (System.String)EntityUtil.ChangeType(values["DepartmentName"], typeof(System.String)) : string.Empty;
            }

            #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)
            {
                PermissionId = (values["PermissionId"] != null) ? (System.String)EntityUtil.ChangeType(values["PermissionId"], typeof(System.String)) : string.Empty;
                RoleId       = (values["RoleId"] != null) ? (System.String)EntityUtil.ChangeType(values["RoleId"], typeof(System.String)) : string.Empty;
            }

            #endregion
        }