public FreightTermDTO(FreightTerm entity) { Id = entity.Id; IncotermCode = entity.IncotermCode; Description = entity.Description; Initiliazing(entity); }
public virtual FreightTerm ToFreightTerm() { var entity = new FreightTerm(); entity.Id = Id; entity.IncotermCode = IncotermCode; entity.Description = Description; Converting(entity); return(entity); }
/// <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); }
partial void Converting(FreightTerm entity);
partial void Initiliazing(FreightTerm entity);
// Use below function in a partial class file (eg. FreightTerm.part.cs) // to add more complexity to clone partial void Cloning(FreightTerm clone);