/// <summary>
 /// Adds subtypes to the list of derived type constraints.
 /// </summary>
 /// <param name="subtypes">The subtypes for which the constraint needs to be added.</param>
 /// <returns>Updated configuration object.</returns>
 public CollectionPropertyConfiguration HasDerivedTypeConstraints(params Type[] subtypes)
 {
     DerivedTypeConstraints.AddConstraints(subtypes);
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Adds subtypes to the list of derived type constraints.
 /// </summary>
 /// <param name="subtypes">The subtypes for which the constraint needs to be added.</param>
 /// <returns>Updated configuration object.</returns>
 public SingletonConfiguration HasDerivedTypeConstraints(params Type[] subtypes)
 {
     DerivedTypeConstraints.AddConstraints(subtypes);
     return(this);
 }
예제 #3
0
 /// <summary>
 /// Adds subtypes to the list of derived type constraints.
 /// </summary>
 /// <param name="subtypes">The subtypes for which the constraint needs to be added.</param>
 /// <returns>Updated configuration object.</returns>
 public EntitySetConfiguration HasDerivedTypeConstraints(params Type[] subtypes)
 {
     DerivedTypeConstraints.AddConstraints(subtypes);
     return(this);
 }