/// <summary> /// Copies the properties from another AnalyticsDimCampus object to this AnalyticsDimCampus object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this AnalyticsDimCampus target, AnalyticsDimCampus source) { target.Id = source.Id; target.AddressCity = source.AddressCity; target.AddressCountry = source.AddressCountry; target.AddressCounty = source.AddressCounty; target.AddressFull = source.AddressFull; target.AddressGeoFence = source.AddressGeoFence; target.AddressGeoPoint = source.AddressGeoPoint; target.AddressLatitude = source.AddressLatitude; target.AddressLongitude = source.AddressLongitude; target.AddressPostalCode = source.AddressPostalCode; target.AddressState = source.AddressState; target.AddressStreet1 = source.AddressStreet1; target.AddressStreet2 = source.AddressStreet2; target.CampusId = source.CampusId; target.Count = source.Count; target.Description = source.Description; target.ForeignGuid = source.ForeignGuid; target.ForeignKey = source.ForeignKey; target.IsActive = source.IsActive; target.LeaderFullName = source.LeaderFullName; target.LeaderPersonAliasId = source.LeaderPersonAliasId; target.LeaderPersonId = source.LeaderPersonId; target.LocationId = source.LocationId; target.Name = source.Name; target.Order = source.Order; target.PhoneNumber = source.PhoneNumber; target.ServiceTimes = source.ServiceTimes; target.ShortCode = source.ShortCode; target.Url = source.Url; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }
/// <summary> /// Clones this AnalyticsDimCampus object to a new AnalyticsDimCampus object /// </summary> /// <param name="source">The source.</param> /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param> /// <returns></returns> public static AnalyticsDimCampus Clone(this AnalyticsDimCampus source, bool deepCopy) { if (deepCopy) { return(source.Clone() as AnalyticsDimCampus); } else { var target = new AnalyticsDimCampus(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Clones this AnalyticsDimCampus object to a new AnalyticsDimCampus object with default values for the properties in the Entity and Model base classes. /// </summary> /// <param name="source">The source.</param> /// <returns></returns> public static AnalyticsDimCampus CloneWithoutIdentity(this AnalyticsDimCampus source) { var target = new AnalyticsDimCampus(); target.CopyPropertiesFrom(source); target.Id = 0; target.Guid = Guid.NewGuid(); target.ForeignKey = null; target.ForeignId = null; target.ForeignGuid = null; return(target); }