// Constructor for creating the prototype instances of the metadata class
 protected CachedModelMetadata(CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, TPrototypeCache prototypeCache)
     : base(provider, containerType, null /* modelAccessor */, modelType, propertyName)
 {
     PrototypeCache = prototypeCache;
 }
Example #2
0
 public CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, IEnumerable <Attribute> attributes)
     : base(provider, containerType, modelType, propertyName, new CachedDataAnnotationsMetadataAttributes(attributes.ToArray()))
 {
 }