EmptyModelMetadataProvider
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class EmptyModelMetadataProvider : ModelMetadataProvider
Methods
CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)
View Source
Declaration
protected virtual ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Attribute> | attributes |
System.Type | containerType |
System.Func<System.Object> | modelAccessor |
System.Type | modelType |
System.String | propertyName |
GetMetadataForProperties(Object, Type)
View Source
Declaration
public override IEnumerable<ModelMetadata> GetMetadataForProperties(object container, Type containerType)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.Html.ModelMetadata>
Parameters
Type | Name |
---|---|
System.Object | container |
System.Type | containerType |
GetMetadataForProperty(Func<Object>, Type, String)
View Source
Declaration
public override ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Func<System.Object> | modelAccessor |
System.Type | containerType |
System.String | propertyName |
GetMetadataForType(Func<Object>, Type)
View Source
Declaration
public override ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Func<System.Object> | modelAccessor |
System.Type | modelType |
Inherited Methods
GetMetadataForProperties(Object, Type)
View Source
Declaration
public abstract IEnumerable<ModelMetadata> GetMetadataForProperties(object container, Type containerType)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.Html.ModelMetadata>
Parameters
Type | Name |
---|---|
System.Object | container |
System.Type | containerType |
GetMetadataForProperty(Func<Object>, Type, String)
View Source
Declaration
public abstract ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Func<System.Object> | modelAccessor |
System.Type | containerType |
System.String | propertyName |
GetMetadataForType(Func<Object>, Type)
View Source
Declaration
public abstract ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Func<System.Object> | modelAccessor |
System.Type | modelType |