Example #1
0
 /// <summary>
 /// Copies the properties from another ReportField object to this ReportField object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this ReportField target, ReportField source)
 {
     target.ReportId        = source.ReportId;
     target.ReportFieldType = source.ReportFieldType;
     target.ShowInGrid      = source.ShowInGrid;
     target.DataSelectComponentEntityTypeId = source.DataSelectComponentEntityTypeId;
     target.Selection        = source.Selection;
     target.Order            = source.Order;
     target.ColumnHeaderText = source.ColumnHeaderText;
     target.Id   = source.Id;
     target.Guid = source.Guid;
 }
Example #2
0
 /// <summary>
 /// Clones this ReportField object to a new ReportField 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 ReportField Clone(this ReportField source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as ReportField);
     }
     else
     {
         var target = new ReportField();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
 /// <summary>
 /// Copies the properties from another ReportField object to this ReportField object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this ReportField target, ReportField source)
 {
     target.Id = source.Id;
     target.ColumnHeaderText = source.ColumnHeaderText;
     target.ColumnOrder      = source.ColumnOrder;
     target.DataSelectComponentEntityTypeId = source.DataSelectComponentEntityTypeId;
     target.ReportFieldType         = source.ReportFieldType;
     target.ReportId                = source.ReportId;
     target.Selection               = source.Selection;
     target.ShowInGrid              = source.ShowInGrid;
     target.SortDirection           = source.SortDirection;
     target.SortOrder               = source.SortOrder;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }