ModelMetadata
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class ModelMetadata
Properties
AdditionalValues
View Source
Declaration
public virtual Dictionary<string, object> AdditionalValues { get; }
ContainerType
View Source
Declaration
public Type ContainerType { get; }
ConvertEmptyStringToNull
View Source
Declaration
public virtual bool ConvertEmptyStringToNull { get; set; }
DataTypeName
View Source
Declaration
public virtual string DataTypeName { get; set; }
Description
View Source
Declaration
public virtual string Description { get; set; }
DisplayFormatString
View Source
Declaration
public virtual string DisplayFormatString { get; set; }
DisplayName
View Source
Declaration
public virtual string DisplayName { get; set; }
EditFormatString
View Source
Declaration
public virtual string EditFormatString { get; set; }
HideSurroundingHtml
View Source
Declaration
public virtual bool HideSurroundingHtml { get; set; }
IsComplexType
View Source
Declaration
public virtual bool IsComplexType { get; }
IsNullableValueType
View Source
Declaration
public bool IsNullableValueType { get; }
IsReadOnly
View Source
Declaration
public virtual bool IsReadOnly { get; set; }
IsRequired
View Source
Declaration
public virtual bool IsRequired { get; set; }
Model
View Source
Declaration
public object Model { get; set; }
ModelType
View Source
Declaration
public Type ModelType { get; }
NullDisplayText
View Source
Declaration
public virtual string NullDisplayText { get; set; }
Order
View Source
Declaration
public virtual int Order { get; set; }
Properties
View Source
Declaration
public virtual IEnumerable<ModelMetadata> Properties { get; }
PropertyName
View Source
Declaration
public string PropertyName { get; }
Provider
View Source
Declaration
protected ModelMetadataProvider Provider { get; set; }
RequestValidationEnabled
View Source
Declaration
public virtual bool RequestValidationEnabled { get; set; }
ShortDisplayName
View Source
Declaration
public virtual string ShortDisplayName { get; set; }
ShowForDisplay
View Source
Declaration
public virtual bool ShowForDisplay { get; set; }
ShowForEdit
View Source
Declaration
public virtual bool ShowForEdit { get; set; }
SimpleDisplayText
View Source
Declaration
public virtual string SimpleDisplayText { get; set; }
TemplateHint
View Source
Declaration
public virtual string TemplateHint { get; set; }
Watermark
View Source
Declaration
public virtual string Watermark { get; set; }
Fields
DefaultOrder
View Source
Declaration
public const int DefaultOrder = 10000
Methods
FromLambdaExpression<TParameter, TValue>(Expression<Func<TParameter, TValue>>, ViewDataDictionary<TParameter>)
View Source
Declaration
public static ModelMetadata FromLambdaExpression<TParameter, TValue>(Expression<Func<TParameter, TValue>> expression, ViewDataDictionary<TParameter> viewData)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression<System.Func<<TParameter>,<TValue>>> | expression |
ServiceStack.Html.ViewDataDictionary<TModel> | viewData |
Type Parameters
TParameter
TValue
FromStringExpression(String, ViewDataDictionary)
View Source
Declaration
public static ModelMetadata FromStringExpression(string expression, ViewDataDictionary viewData)
Returns
ServiceStack.Html.ModelMetadata
Parameters
Type | Name |
---|---|
System.String | expression |
ServiceStack.Html.ViewDataDictionary | viewData |
GetDisplayName()
View Source
Declaration
public string GetDisplayName()
Returns
System.String
GetSimpleDisplayText()
View Source
Declaration
protected virtual string GetSimpleDisplayText()
Returns
System.String