public void AddRange(RecordCollection recs, bool clearList) { if (clearList) { _items.Clear(); } foreach (var item in recs) { this._items.Add(item); } }
/// <summary> /// New Method /// </summary> /// <param name="collection">Record Collection for the current record</param> public RecordEditContext(RecordCollection collection) { Debug.Assert(collection != null); if (collection is null) { throw new InvalidOperationException($"{nameof(RecordEditContext)} requires a valid {nameof(RecordCollection)} object"); } else { this.RecordValues = collection; this.LoadValidationActions(); } }