/// <summary>
        /// Loads a <see cref="ProductTypeUpdatedByRootInfo"/> object from the given <see cref="ProductTypeUpdatedByRootInfoDto"/>.
        /// </summary>
        /// <param name="data">The ProductTypeUpdatedByRootInfoDto to use.</param>
        private void Child_Fetch(ProductTypeUpdatedByRootInfoDto data)
        {
            // Value properties
            LoadProperty(ProductTypeIdProperty, data.ProductTypeId);
            LoadProperty(NameProperty, data.Name);
            var args = new DataPortalHookArgs(data);

            OnFetchRead(args);
        }
Esempio n. 2
0
        private ProductTypeUpdatedByRootInfoDto Fetch(SafeDataReader dr)
        {
            var productTypeUpdatedByRootInfo = new ProductTypeUpdatedByRootInfoDto();

            // Value properties
            productTypeUpdatedByRootInfo.ProductTypeId = dr.GetInt32("ProductTypeId");
            productTypeUpdatedByRootInfo.Name          = dr.GetString("Name");

            return(productTypeUpdatedByRootInfo);
        }