Skip to main content

ModelMetadataProvider

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public abstract class ModelMetadataProvider

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