/// <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); } }
/// <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); } }