Example #1
0
 /// <summary>
 ///     Sets the validation logic for the member as a collection of nested models.
 /// </summary>
 /// <typeparam name="TModel">Type of the parent model.</typeparam>
 /// <typeparam name="TItem">Type of the nested models in the collection.</typeparam>
 /// <param name="this"></param>
 /// <param name="specification">The specification for the single nested model in the collection.</param>
 public static IMemberSpecificationBuilder <TModel, IReadOnlyCollection <TItem> > AsModelsCollection <TModel, TItem>(this IMemberSpecificationBuilder <TModel, IReadOnlyCollection <TItem> > @this, Specification <TItem> specification = null)
     where TModel : class
     where TItem : class
 {
     return(@this.AsModelsCollection <TModel, IReadOnlyCollection <TItem>, TItem>(specification));
 }