예제 #1
0
 /// <summary>
 /// Add follow records
 /// </summary>
 /// <param name="records">Follow records</param>
 public void AddFollowRecords(IEnumerable <IActivationRecord> records)
 {
     if (records.IsNullOrEmpty())
     {
         return;
     }
     FollowRecords ??= new List <IActivationRecord>(0);
     foreach (var childRecord in records)
     {
         childRecord.ParentRecord = this;
         FollowRecords.Add(childRecord);
     }
 }
예제 #2
0
 /// <summary>
 /// add follow records
 /// </summary>
 /// <param name="records">records</param>
 public void AddFollowRecords(params IActivationRecord[] records)
 {
     if (records.IsNullOrEmpty())
     {
         return;
     }
     if (FollowRecords == null)
     {
         FollowRecords = new List <IActivationRecord>();
     }
     foreach (var childRecord in records)
     {
         childRecord.ParentRecord = this;
         FollowRecords.Add(childRecord);
     }
 }