public static ContosoUniversity.DAL.SalesModel.Item ToEntity(this ItemDto source)
        {
            if (source == null)
            {
                return(null);
            }

            var target = new ContosoUniversity.DAL.SalesModel.Item();

            // Properties
            target.Id            = source.Id;
            target.ArDescription = source.ArDescription;
            target.EnDescription = source.EnDescription;
            target.Category      = source.Category;
            target.RowVersion    = source.RowVersion;
            target.Price         = source.Price;

            // User-defined partial method
            OnEntityCreating(source, target);

            return(target);
        }
 static partial void OnDtoCreating(ContosoUniversity.DAL.SalesModel.Item source, ItemDto target);
 static partial void OnEntityCreating(ItemDto source, ContosoUniversity.DAL.SalesModel.Item target);
 public ItemStoreDto(long id, int minLimit, int maxLimit, int quantity, long itemId, int storeId, ItemDto item, StoreDto store)
 {
     this.Id       = id;
     this.MinLimit = minLimit;
     this.MaxLimit = maxLimit;
     this.Quantity = quantity;
     this.ItemId   = itemId;
     this.StoreId  = storeId;
     this.Item     = item;
     this.Store    = store;
 }