Ejemplo n.º 1
0
        partial void Converting(SizingStandard entity)
        {
            var sizings = Sizings.OrderBy(c => c.DisplayOrder);

            foreach (var item in sizings)
            {
                entity.Sizings.Add(item.ToSizing());
            }
        }
Ejemplo n.º 2
0
        protected virtual void Constructing(SizingStandard entity)
        {
            var sizings = entity.Sizings.OrderBy(c => c.DisplayOrder);

            foreach (var item in entity.Sizings)
            {
                Sizings.Add(new SizingDTO(item));
            }
        }
Ejemplo n.º 3
0
 public override SizingStandard ToSizingStandard()
 {
     for (int i = 1; i < 13; i++)
     {
         var sizing = GetCaption(i);
         if (sizing != null)
         {
             Sizings.Add(sizing);
         }
     }
     return(base.ToSizingStandard());
 }
        /// <summary>
        /// Default query for Sizings
        /// </summary>
        /// <returns></returns>
        public virtual IQueryable <Sizing> GetSizingQuery()
        {
            IQueryable <Sizing> query = Sizings.OrderBy(p => p.DisplayOrder);

            return(query);
        }