Esempio n. 1
0
 public DefaultModelMetadata(
     DefaultModelMetadataProvider provider,
     Type containerType,
     Type modelType,
     string propertyName,
     IEnumerable <Attribute> attributes)
     : this(provider, containerType, modelType, propertyName, new MetadataAttributes(attributes.ToArray()))
 {
 }
Esempio n. 2
0
 public DefaultModelMetadata(
     DefaultModelMetadataProvider provider,
     Type containerType,
     Func <object> modelAccessor,
     Type modelType,
     string propertyName) :
     base(provider, containerType, modelAccessor, modelType, propertyName)
 {
 }
Esempio n. 3
0
 protected DefaultModelMetadata(DefaultModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, MetadataAttributes prototypeCache)
     : base(provider, containerType, null /* modelAccessor */, modelType, propertyName)
 {
     PrototypeCache = prototypeCache;
 }