public POImageDTO(POImage entity) { Id = entity.Id; PurchaseOrderId = entity.PurchaseOrderId; ImageUrl = entity.ImageUrl; ImageTitle = entity.ImageTitle; DisplayOrder = entity.DisplayOrder; Initiliazing(entity); }
public virtual POImage ToPOImage() { var entity = new POImage(); entity.Id = Id; entity.PurchaseOrderId = PurchaseOrderId; entity.ImageUrl = ImageUrl; entity.ImageTitle = ImageTitle; entity.DisplayOrder = DisplayOrder; Converting(entity); return(entity); }
/// <summary> /// Clones all properties in a new POImage instance, /// except PrimaryKey(s) /// </summary> /// <returns>New POImage instance</returns> public POImage Clone() { var clone = new POImage(); clone.PurchaseOrderId = PurchaseOrderId; clone.ImageUrl = ImageUrl; clone.ImageTitle = ImageTitle; clone.DisplayOrder = DisplayOrder; 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); }
partial void Initiliazing(POImage entity) { Constructing(entity); }
// Use below function in a partial class file (eg. POImage.part.cs) // to add more complexity to clone partial void Cloning(POImage clone);
partial void Converting(POImage entity);
partial void Initiliazing(POImage entity);