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

            target.CopyPropertiesFrom(source);

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

            return(target);
        }
 /// <summary>
 /// Copies the properties from another AnalyticsDimFinancialBatch object to this AnalyticsDimFinancialBatch object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this AnalyticsDimFinancialBatch target, AnalyticsDimFinancialBatch source)
 {
     target.Id = source.Id;
     target.AccountingSystemCode = source.AccountingSystemCode;
     target.BatchEndDateTime     = source.BatchEndDateTime;
     target.BatchId            = source.BatchId;
     target.BatchStartDateTime = source.BatchStartDateTime;
     target.Campus             = source.Campus;
     target.ControlAmount      = source.ControlAmount;
     target.Count       = source.Count;
     target.ForeignGuid = source.ForeignGuid;
     target.ForeignKey  = source.ForeignKey;
     target.Name        = source.Name;
     target.Status      = source.Status;
     target.Guid        = source.Guid;
     target.ForeignId   = source.ForeignId;
 }