示例#1
0
        /// <summary>
        /// Clones all properties in a new Licensor instance,
        /// except PrimaryKey(s)
        /// </summary>
        /// <returns>New Licensor instance</returns>
        public Licensor Clone()
        {
            var clone = new Licensor();

            clone.CompanyName        = CompanyName;
            clone.Phone1             = Phone1;
            clone.Phone2             = Phone2;
            clone.Phone3             = Phone3;
            clone.Address1           = Address1;
            clone.Address2           = Address2;
            clone.ZipCode            = ZipCode;
            clone.City               = City;
            clone.State              = State;
            clone.CountryId          = CountryId;
            clone.Discontinued       = Discontinued;
            clone.DiscontinueDate    = DiscontinueDate;
            clone.DiscontinueNotes   = DiscontinueNotes;
            clone.Notes              = Notes;
            clone.ModifyNr           = ModifyNr;
            clone.ModifyDate         = ModifyDate;
            clone.DiscontinuedUserId = DiscontinuedUserId;
            clone.DiscontinuedUserIp = DiscontinuedUserIp;
            clone.ModifierId         = ModifierId;
            clone.ModifierIp         = ModifierIp;
            clone.CreateDate         = CreateDate;
            clone.CreatorId          = CreatorId;
            clone.CreatorIp          = CreatorIp;
            clone.LicensorCode       = LicensorCode;

            Cloning(clone);

            return(clone);
        }
示例#2
0
        public virtual Licensor ToLicensor()
        {
            var entity = new Licensor();

            entity.Id               = Id;
            entity.CompanyName      = CompanyName;
            entity.Phone1           = Phone1;
            entity.Phone2           = Phone2;
            entity.Phone3           = Phone3;
            entity.Address1         = Address1;
            entity.Address2         = Address2;
            entity.ZipCode          = ZipCode;
            entity.City             = City;
            entity.State            = State;
            entity.CountryId        = CountryId;
            entity.Discontinued     = Discontinued;
            entity.DiscontinueDate  = DiscontinueDate;
            entity.DiscontinueNotes = DiscontinueNotes;
            entity.Notes            = Notes;
            entity.LicensorCode     = LicensorCode;

            Converting(entity);

            return(entity);
        }
示例#3
0
        public LicensorDTO(Licensor entity)
        {
            Id               = entity.Id;
            CompanyName      = entity.CompanyName;
            Phone1           = entity.Phone1;
            Phone2           = entity.Phone2;
            Phone3           = entity.Phone3;
            Address1         = entity.Address1;
            Address2         = entity.Address2;
            ZipCode          = entity.ZipCode;
            City             = entity.City;
            State            = entity.State;
            CountryId        = entity.CountryId;
            Discontinued     = entity.Discontinued;
            DiscontinueDate  = entity.DiscontinueDate;
            DiscontinueNotes = entity.DiscontinueNotes;
            Notes            = entity.Notes;
            LicensorCode     = entity.LicensorCode;

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