예제 #1
0
        public SizingDTO(Sizing entity)
        {
            Id               = entity.Id;
            DisplayOrder     = entity.DisplayOrder;
            Caption          = entity.Caption;
            SizingStandardId = entity.SizingStandardId;

            Initiliazing(entity);
        }
예제 #2
0
        public virtual Sizing ToSizing()
        {
            var entity = new Sizing();

            entity.Id               = Id;
            entity.DisplayOrder     = DisplayOrder;
            entity.Caption          = Caption;
            entity.SizingStandardId = SizingStandardId;

            Converting(entity);

            return(entity);
        }
예제 #3
0
        /// <summary>
        /// Clones all properties in a new Sizing instance,
        /// except PrimaryKey(s)
        /// </summary>
        /// <returns>New Sizing instance</returns>
        public Sizing Clone()
        {
            var clone = new Sizing();

            clone.DisplayOrder     = DisplayOrder;
            clone.Caption          = Caption;
            clone.SizingStandardId = SizingStandardId;
            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. Sizing.part.cs)
 // to add more complexity to clone
 partial void Cloning(Sizing clone);
예제 #5
0
 partial void Converting(Sizing entity);
예제 #6
0
 partial void Initiliazing(Sizing entity);