示例#1
0
        public POImageDTO(POImage entity)
        {
            Id = entity.Id;
            PurchaseOrderId = entity.PurchaseOrderId;
            ImageUrl        = entity.ImageUrl;
            ImageTitle      = entity.ImageTitle;
            DisplayOrder    = entity.DisplayOrder;

            Initiliazing(entity);
        }
示例#2
0
        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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
 partial void Initiliazing(POImage entity)
 {
     Constructing(entity);
 }
示例#5
0
 // Use below function in a partial class file (eg. POImage.part.cs)
 // to add more complexity to clone
 partial void Cloning(POImage clone);
示例#6
0
 partial void Converting(POImage entity);
示例#7
0
 partial void Initiliazing(POImage entity);