コード例 #1
0
 /// <summary>
 /// Adds TDerived to the list of derived type constraints.
 /// </summary>
 /// <returns>Updated configuration object.</returns>
 public SingletonConfiguration HasDerivedTypeConstraint <TDerivedType>()
 {
     DerivedTypeConstraints.AddConstraint <TDerivedType>();
     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 TDerived to the list of derived type constraints.
 /// </summary>
 /// <returns>Updated configuration object.</returns>
 public CollectionPropertyConfiguration HasDerivedTypeConstraint <TDerivedType>()
 {
     DerivedTypeConstraints.AddConstraint <TDerivedType>();
     return(this);
 }
コード例 #4
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 CollectionPropertyConfiguration HasDerivedTypeConstraints(params Type[] subtypes)
 {
     DerivedTypeConstraints.AddConstraints(subtypes);
     return(this);
 }
コード例 #5
0
 /// <summary>
 /// Adds TDerived to the list of derived type constraints.
 /// </summary>
 /// <returns>Updated configuration object.</returns>
 public EntitySetConfiguration HasDerivedTypeConstraint <TDerivedType>()
 {
     DerivedTypeConstraints.AddConstraint <TDerivedType>();
     return(this);
 }
コード例 #6
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);
 }