Crud
Assembly: ServiceStack.Client.dll
View Source
public static class Crud
Properties
Default
View Source
public static List<string> Default { get; }
All
View Source
public static HashSet<string> All { get; }
Read
View Source
public static List<string> Read { get; }
Write
View Source
public static List<string> Write { get; }
ReadInterfaces
View Source
public static string[] ReadInterfaces { get; }
WriteInterfaces
View Source
public static string[] WriteInterfaces { get; }
ApiMarkerInterfaces
View Source
public static string[] ApiMarkerInterfaces { get; }
ApiReturnInterfaces
View Source
public static string[] ApiReturnInterfaces { get; }
ApiCrudInterfaces
View Source
public static string[] ApiCrudInterfaces { get; }
ApiQueryBaseTypes
View Source
public static string[] ApiQueryBaseTypes { get; }
ApiInterfaces
View Source
public static HashSet<string> ApiInterfaces { get; }
ApiBaseTypes
View Source
public static HashSet<string> ApiBaseTypes { get; }
Methods
HasInterface(MetadataOperationType, String)
View Source
public static bool HasInterface(MetadataOperationType op, string cls)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
System.String | cls |
CrudInterfaceMetadataNames(List<String>)
View Source
public static string[] CrudInterfaceMetadataNames(List<string> operations = null)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<System.String> | operations |
IsCrud(MetadataOperationType)
Is AutoQuery or Crud Request API
View Source
public static bool IsCrud(this MetadataOperationType op)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
IsCrudRead(MetadataOperationType)
Is AutoQuery Request DTO
View Source
public static bool IsCrudRead(this MetadataOperationType op)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
IsCrudWrite(MetadataOperationType)
Is Crud Request DTO
View Source
public static bool IsCrudWrite(this MetadataOperationType op)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataOperationType | op |
IsCrud(MetadataType)
Is AutoQuery or Crud Request DTO
View Source
public static bool IsCrud(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudRead(MetadataType)
Is AutoQuery Request DTO
View Source
public static bool IsCrudRead(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsAutoQuery(MetadataType)
Is AutoQuery Request DTO
View Source
public static bool IsAutoQuery(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsAutoQueryData(MetadataType)
Is AutoQuery Request DTO
View Source
public static bool IsAutoQueryData(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudWrite(MetadataType)
Is Crud Request DTO
View Source
public static bool IsCrudWrite(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrud(MetadataType, String)
Is AutoQuery or Crud Request DTO for Data Model
View Source
public static bool IsCrud(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudWrite(MetadataType, String)
Is Crud Request DTO for Data Model
View Source
public static bool IsCrudWrite(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudRead(MetadataType, String)
Is AutoQuery Request DTO for Data Model
View Source
public static bool IsCrudRead(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsAutoQuery(MetadataType, String)
Is AutoQuery Request DTO for Data Model
View Source
public static bool IsAutoQuery(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudCreate(MetadataType)
Is ICreateDb or ISaveDb Crud Request DTO
View Source
public static bool IsCrudCreate(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudCreate(MetadataType, String)
Is ICreateDb or ISaveDb Crud Request DTO for Data Model
View Source
public static bool IsCrudCreate(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudUpdate(MetadataType)
Is IPatchDb, IUpdateDb or ISaveDb Crud Request DTO
View Source
public static bool IsCrudUpdate(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudUpdate(MetadataType, String)
Is IPatchDb, IUpdateDb or ISaveDb Crud Request DTO for Data Model
View Source
public static bool IsCrudUpdate(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudCreateOrUpdate(MetadataType)
Is ICreateDb, IPatchDb, IUpdateDb or ISaveDb Crud Request DTO
View Source
public static bool IsCrudCreateOrUpdate(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudCreateOrUpdate(MetadataType, String)
Is ICreateDb, IPatchDb, IUpdateDb or ISaveDb Crud Request DTO for Data Model
View Source
public static bool IsCrudCreateOrUpdate(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
IsCrudDelete(MetadataType)
Is IDeleteDb Crud Request DTO
View Source
public static bool IsCrudDelete(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudDelete(MetadataType, String)
Is IDeleteDb Crud Request DTO for Data Model
View Source
public static bool IsCrudDelete(this MetadataType type, string model)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
System.String | model |
CrudModel(MetadataType)
Retrieve AutoQuery Data Model from AutoQuery CRUD APIs
View Source
public static string CrudModel(this MetadataType type)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsCrudCreate(Type)
View Source
public static bool IsCrudCreate(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
IsCrudUpdate(Type)
View Source
public static bool IsCrudUpdate(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
IsCrudPatch(Type)
View Source
public static bool IsCrudPatch(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
IsCrudDelete(Type)
View Source
public static bool IsCrudDelete(Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
FirstGenericArg(MetadataTypeName)
View Source
public static string FirstGenericArg(this MetadataTypeName type)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.MetadataTypeName | type |
CombineSet<T>(T[], T[][])
View Source
public static HashSet<T> CombineSet<T>(T[] original, params T[][] others)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
Type | Name |
---|---|
<T>[] | original |
<T>[][] | others |
Type Parameters
T