/// <summary> /// Register a new convention /// </summary> /// <param name="convention"><see cref="IPropertyModelMetadataConvention"/> class</param> public virtual void RegisterConvention([NotNull] IPropertyModelMetadataConvention convention) { Invariant.IsNotNull(convention, "convention"); conventions.Add(convention); }
protected ModelMetadataItemBuilder <TValue> Configure <TValue>([NotNull] string property) { Invariant.IsNotNull(property, "property"); return(Create <TValue>(property)); }
/// <summary> /// /// </summary> /// <param name="configuration"></param> public void RegisterConfiguration(IModelMetadataConfiguration configuration) { Invariant.IsNotNull(configuration, "configuration"); configurations.Add(configuration.ModelType, configuration); }