Skip to main content

PocoMetadataProvider

Assembly: ServiceStack.Razor.dll​
View Source​
Declaration
public class PocoMetadataProvider : 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​
TypeName
System.Collections.Generic.IEnumerable<System.Attribute>attributes
System.TypecontainerType
System.Func<System.Object>modelAccessor
System.TypemodelType
System.StringpropertyName

GetMetadataForProperties(Object, Type)​

View Source​
Declaration
public override IEnumerable<ModelMetadata> GetMetadataForProperties(object container, Type containerType)
Returns​

System.Collections.Generic.IEnumerable<ServiceStack.Html.ModelMetadata>

Parameters​
TypeName
System.Objectcontainer
System.TypecontainerType

GetMetadataForProperty(Func<Object>, Type, String)​

View Source​
Declaration
public override ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName)
Returns​

ServiceStack.Html.ModelMetadata

Parameters​
TypeName
System.Func<System.Object>modelAccessor
System.TypecontainerType
System.StringpropertyName

GetMetadataForType(Func<Object>, Type)​

View Source​
Declaration
public override ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType)
Returns​

ServiceStack.Html.ModelMetadata

Parameters​
TypeName
System.Func<System.Object>modelAccessor
System.TypemodelType

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​
TypeName
System.Objectcontainer
System.TypecontainerType

GetMetadataForProperty(Func<Object>, Type, String)​

View Source​
Declaration
public abstract ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName)
Returns​

ServiceStack.Html.ModelMetadata

Parameters​
TypeName
System.Func<System.Object>modelAccessor
System.TypecontainerType
System.StringpropertyName

GetMetadataForType(Func<Object>, Type)​

View Source​
Declaration
public abstract ModelMetadata GetMetadataForType(Func<object> modelAccessor, Type modelType)
Returns​

ServiceStack.Html.ModelMetadata

Parameters​
TypeName
System.Func<System.Object>modelAccessor
System.TypemodelType