Exemple #1
0
 /// <summary>
 /// 初始化一个<see cref="ChangedValueDescriptorCollection"/>类型的实例
 /// </summary>
 /// <param name="descriptors">变更值描述符集合</param>
 public ChangedValueDescriptorCollection(ChangedValueDescriptorCollection descriptors) : this()
 {
     if (descriptors == null)
     {
         throw new ArgumentNullException(nameof(descriptors));
     }
     Populate(descriptors);
 }
 /// <summary>
 /// 初始化一个<see cref="ChangeTrackingContext"/>类型的实例
 /// </summary>
 /// <param name="collection">变更值集合</param>
 public ChangeTrackingContext(ChangedValueDescriptorCollection collection) =>
 /// <summary>
 /// 填充
 /// </summary>
 /// <param name="collection">变更值集合</param>
 public void Populate(ChangedValueDescriptorCollection collection) => _changedValueCollection.Populate(collection);