Exemple #1
0
        public FreightTermDTO(FreightTerm entity)
        {
            Id           = entity.Id;
            IncotermCode = entity.IncotermCode;
            Description  = entity.Description;

            Initiliazing(entity);
        }
Exemple #2
0
        public virtual FreightTerm ToFreightTerm()
        {
            var entity = new FreightTerm();

            entity.Id           = Id;
            entity.IncotermCode = IncotermCode;
            entity.Description  = Description;

            Converting(entity);

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

            clone.IncotermCode = IncotermCode;
            clone.Description  = Description;
            clone.IsPublished  = IsPublished;

            Cloning(clone);

            return(clone);
        }
Exemple #4
0
 partial void Converting(FreightTerm entity);
Exemple #5
0
 partial void Initiliazing(FreightTerm entity);
Exemple #6
0
 // Use below function in a partial class file (eg. FreightTerm.part.cs)
 // to add more complexity to clone
 partial void Cloning(FreightTerm clone);