public POSizeRatioDTO(POSizeRatio entity) { Id = entity.Id; DisplayOrder = entity.DisplayOrder; Caption = entity.Caption; Rate = entity.Rate; PurchaseOrderId = entity.PurchaseOrderId; Initiliazing(entity); }
public virtual POSizeRatio ToPOSizeRatio() { var entity = new POSizeRatio(); entity.Id = Id; entity.DisplayOrder = DisplayOrder; entity.Caption = Caption; entity.Rate = Rate; entity.PurchaseOrderId = PurchaseOrderId; Converting(entity); return(entity); }
/// <summary> /// Clones all properties in a new POSizeRatio instance, /// except PrimaryKey(s) /// </summary> /// <returns>New POSizeRatio instance</returns> public POSizeRatio Clone() { var clone = new POSizeRatio(); clone.DisplayOrder = DisplayOrder; clone.Caption = Caption; clone.Rate = Rate; clone.PurchaseOrderId = PurchaseOrderId; clone.ModifyNr = ModifyNr; clone.ModifyDate = ModifyDate; clone.ModifierId = ModifierId; clone.ModifierIp = ModifierIp; clone.CreateDate = CreateDate; clone.CreatorId = CreatorId; clone.CreatorIp = CreatorIp; Cloning(clone); return(clone); }
// Use below function in a partial class file (eg. POSizeRatio.part.cs) // to add more complexity to clone partial void Cloning(POSizeRatio clone);
partial void Converting(POSizeRatio entity);
partial void Initiliazing(POSizeRatio entity);