CrudUtils
Assembly: ServiceStack.Server.dll
View Source
Declaration
public static class CrudUtils : object
Methods
ToAttribute(String, Dictionary<String, Object>, Attribute)
View Source
Declaration
public static MetadataAttribute ToAttribute(string name, Dictionary<string, object> args = null, Attribute attr = null)
Returns
ServiceStack.MetadataAttribute
Parameters
Type | Name |
---|---|
System.String | name |
Dictionary<System.String,System.Object> | args |
Attribute | attr |
AddAttribute(MetadataType, String, Dictionary<String, Object>, Attribute)
View Source
Declaration
public static MetadataType AddAttribute(this MetadataType type, string name, Dictionary<string, object> args = null, Attribute attr = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | name |
Dictionary<System.String,System.Object> | args |
Attribute | attr |
AddAttribute(MetadataType, Attribute)
View Source
Declaration
public static MetadataType AddAttribute(this MetadataType type, Attribute attr)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
Attribute | attr |
AddAttributeIfNotExists<T>(MetadataType, T, Func<T, Boolean>)
View Source
Declaration
public static MetadataType AddAttributeIfNotExists<T>(this MetadataType type, T attr, Func<T, bool> test = null)
where T : Attribute
Returns
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
<T> | attr |
Func<<T>,System.Boolean> | test |
Type Parameters
T
AddAttribute(MetadataPropertyType, Attribute)
View Source
Declaration
public static MetadataPropertyType AddAttribute(this MetadataPropertyType propType, Attribute attr)
Returns
ServiceStack.MetadataPropertyType
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | propType |
Attribute | attr |
AddAttributeIfNotExists<T>(MetadataPropertyType, T, Func<T, Boolean>)
View Source
Declaration
public static MetadataPropertyType AddAttributeIfNotExists<T>(this MetadataPropertyType propType, T attr, Func<T, bool> test = null)
where T : Attribute
Returns
ServiceStack.MetadataPropertyType
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | propType |
<T> | attr |
Func<<T>,System.Boolean> | test |
Type Parameters
T