Skip to main content

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
TypeName
System.Stringname
Dictionary<System.String,System.Object>args
Attributeattr

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

ServiceStack.MetadataType

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringname
Dictionary<System.String,System.Object>args
Attributeattr

AddAttribute(MetadataType, Attribute)

View Source
Declaration
public static MetadataType AddAttribute(this MetadataType type, Attribute attr)
Returns

ServiceStack.MetadataType

Parameters
TypeName
ServiceStack.MetadataTypetype
Attributeattr

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

ServiceStack.MetadataType

Parameters
TypeName
ServiceStack.MetadataTypetype
<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
TypeName
ServiceStack.MetadataPropertyTypepropType
Attributeattr

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
TypeName
ServiceStack.MetadataPropertyTypepropType
<T>attr
Func<<T>,System.Boolean>test
Type Parameters
  • T