コード例 #1
0
        public POSizeRatioDTO(POSizeRatio entity)
        {
            Id              = entity.Id;
            DisplayOrder    = entity.DisplayOrder;
            Caption         = entity.Caption;
            Rate            = entity.Rate;
            PurchaseOrderId = entity.PurchaseOrderId;

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