Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
 public CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, IEnumerable <Attribute> attributes)
     : base(provider, containerType, modelType, propertyName, new CachedDataAnnotationsMetadataAttributes(attributes.ToArray()))
 {
 }