/// <summary> /// Copies the properties from another MetaLastNameLookup object to this MetaLastNameLookup object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this MetaLastNameLookup target, MetaLastNameLookup source) { target.Id = source.Id; target.Count = source.Count; target.CountIn100k = source.CountIn100k; target.ForeignGuid = source.ForeignGuid; target.ForeignKey = source.ForeignKey; target.LastName = source.LastName; target.Rank = source.Rank; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }
/// <summary> /// Clones this MetaLastNameLookup object to a new MetaLastNameLookup 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 MetaLastNameLookup Clone(this MetaLastNameLookup source, bool deepCopy) { if (deepCopy) { return(source.Clone() as MetaLastNameLookup); } else { var target = new MetaLastNameLookup(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Clones this MetaLastNameLookup object to a new MetaLastNameLookup 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 MetaLastNameLookup CloneWithoutIdentity(this MetaLastNameLookup source) { var target = new MetaLastNameLookup(); target.CopyPropertiesFrom(source); target.Id = 0; target.Guid = Guid.NewGuid(); target.ForeignKey = null; target.ForeignId = null; target.ForeignGuid = null; return(target); }