/// <summary>
 /// Clones this AnalyticsSourceFinancialTransaction object to a new AnalyticsSourceFinancialTransaction 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 AnalyticsSourceFinancialTransaction Clone(this AnalyticsSourceFinancialTransaction source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as AnalyticsSourceFinancialTransaction);
     }
     else
     {
         var target = new AnalyticsSourceFinancialTransaction();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
        /// <summary>
        /// Clones this AnalyticsSourceFinancialTransaction object to a new AnalyticsSourceFinancialTransaction 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 AnalyticsSourceFinancialTransaction CloneWithoutIdentity(this AnalyticsSourceFinancialTransaction source)
        {
            var target = new AnalyticsSourceFinancialTransaction();

            target.CopyPropertiesFrom(source);

            target.Id          = 0;
            target.Guid        = Guid.NewGuid();
            target.ForeignKey  = null;
            target.ForeignId   = null;
            target.ForeignGuid = null;

            return(target);
        }