示例#1
0
 public ClothesMainTransfer(IClothesBase clothes, IEnumerable <ClothesImageTransfer> images,
                            GenderTransfer gender, ClothesTypeTransfer clothesType,
                            IEnumerable <ColorTransfer> colors, IEnumerable <SizeGroupMainTransfer> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, images.ToList(),
            gender, clothesType, colors.ToList(), sizeGroups.ToList())
 {
 }
示例#2
0
 public ClothesEntity(IClothesBase clothes, IEnumerable <ClothesImageEntity> images,
                      IEnumerable <ClothesColorCompositeEntity> clothesColorComposites,
                      IEnumerable <ClothesSizeGroupCompositeEntity> clothesSizeGroupComposites)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName,
            images, null, null, clothesColorComposites, clothesSizeGroupComposites)
 {
 }
示例#3
0
 /// <summary>
 /// Получить сущность одежды
 /// </summary>
 private static ClothesEntity GetClothesEntity(IClothesBase clothes, IEnumerable <ClothesImageEntity>?clothesImages,
                                               GenderEntity?gender, ClothesTypeEntity?clothesType,
                                               IEnumerable <ClothesColorCompositeEntity>?clothesColorComposites,
                                               IEnumerable <ClothesSizeGroupCompositeEntity>?clothesSizeGroupComposites) =>
示例#4
0
 public ClothesEntity(IClothesBase clothes)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName,
            null, null, null, null, null)
 {
 }
示例#5
0
 /// <summary>
 /// Функция получения одежды
 /// </summary>
 private static IResultValue <ClothesFunc> GetClothesFunc(IClothesBase clothes) =>
 new ResultValue <ClothesFunc>(
     (colors, sizeGroups) => new ClothesDetailDomain(clothes, colors, sizeGroups));
 public ClothesDetailDomain(IClothesBase clothes,
                            IEnumerable <IColorDomain> colors, IEnumerable <ISizeGroupMainDomain> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price,
            clothes.GenderType, clothes.ClothesTypeName, colors, sizeGroups)
 {
 }
示例#7
0
 /// <summary>
 /// Функция получения информации об одежде
 /// </summary>
 private static IResultValue <ClothesFunc> GetClothesFunc(IClothesBase clothes) =>
 new ResultValue <ClothesFunc>(
     (images, gender, clothesType, colors, sizes) => new ClothesMainDomain(clothes, images, gender, clothesType, colors, sizes));
示例#8
0
 public ClothesDomain(IClothesBase clothes)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, clothes.GenderType, clothes.ClothesTypeName)
 {
 }
示例#9
0
 public ClothesDetailTransfer(IClothesBase clothes,
                              IEnumerable <ColorTransfer> colors, IEnumerable <SizeGroupMainTransfer> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price,
            clothes.GenderType, clothes.ClothesTypeName, colors.ToList(), sizeGroups.ToList())
 {
 }
示例#10
0
 public ClothesMainDomain(IClothesBase clothes, IEnumerable <IClothesImageDomain> images,
                          IGenderDomain gender, IClothesTypeDomain clothesType,
                          IEnumerable <IColorDomain> colors, IEnumerable <ISizeGroupMainDomain> sizeGroups)
     : this(clothes.Id, clothes.Name, clothes.Description, clothes.Price, images, gender, clothesType, colors, sizeGroups)
 {
 }