partial void Converting(SizingStandard entity) { var sizings = Sizings.OrderBy(c => c.DisplayOrder); foreach (var item in sizings) { entity.Sizings.Add(item.ToSizing()); } }
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)); } }
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); }