Skip to main content

Crud

Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class Crud

Properties

Default

View Source
Declaration
public static List<string> Default { get; }

All

View Source
Declaration
public static HashSet<string> All { get; }

Read

View Source
Declaration
public static List<string> Read { get; }

Write

View Source
Declaration
public static List<string> Write { get; }

ReadInterfaces

View Source
Declaration
public static string[] ReadInterfaces { get; }

WriteInterfaces

View Source
Declaration
public static string[] WriteInterfaces { get; }

ApiMarkerInterfaces

View Source
Declaration
public static string[] ApiMarkerInterfaces { get; }

ApiReturnInterfaces

View Source
Declaration
public static string[] ApiReturnInterfaces { get; }

ApiCrudInterfaces

View Source
Declaration
public static string[] ApiCrudInterfaces { get; }

ApiQueryBaseTypes

View Source
Declaration
public static string[] ApiQueryBaseTypes { get; }

ApiInterfaces

View Source
Declaration
public static HashSet<string> ApiInterfaces { get; }

ApiBaseTypes

View Source
Declaration
public static HashSet<string> ApiBaseTypes { get; }

Methods

HasInterface(MetadataOperationType, String)

View Source
Declaration
public static bool HasInterface(MetadataOperationType op, string cls)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataOperationTypeop
System.Stringcls

CrudInterfaceMetadataNames(List<String>)

View Source
Declaration
public static string[] CrudInterfaceMetadataNames(List<string> operations = null)
Returns

System.String[]

Parameters
TypeName
System.Collections.Generic.List<System.String>operations

IsCrud(MetadataOperationType)

Is AutoQuery or Crud Request API

View Source
Declaration
public static bool IsCrud(this MetadataOperationType op)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

IsCrudRead(MetadataOperationType)

Is AutoQuery Request DTO

View Source
Declaration
public static bool IsCrudRead(this MetadataOperationType op)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

IsCrudWrite(MetadataOperationType)

Is Crud Request DTO

View Source
Declaration
public static bool IsCrudWrite(this MetadataOperationType op)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

IsCrud(MetadataType)

Is AutoQuery or Crud Request DTO

View Source
Declaration
public static bool IsCrud(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudRead(MetadataType)

Is AutoQuery Request DTO

View Source
Declaration
public static bool IsCrudRead(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsAutoQuery(MetadataType)

Is AutoQuery Request DTO

View Source
Declaration
public static bool IsAutoQuery(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsAutoQueryData(MetadataType)

Is AutoQuery Request DTO

View Source
Declaration
public static bool IsAutoQueryData(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudWrite(MetadataType)

Is Crud Request DTO

View Source
Declaration
public static bool IsCrudWrite(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrud(MetadataType, String)

Is AutoQuery or Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrud(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudWrite(MetadataType, String)

Is Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrudWrite(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudRead(MetadataType, String)

Is AutoQuery Request DTO for Data Model

View Source
Declaration
public static bool IsCrudRead(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsAutoQuery(MetadataType, String)

Is AutoQuery Request DTO for Data Model

View Source
Declaration
public static bool IsAutoQuery(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudCreate(MetadataType)

Is ICreateDb or ISaveDb Crud Request DTO

View Source
Declaration
public static bool IsCrudCreate(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudCreate(MetadataType, String)

Is ICreateDb or ISaveDb Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrudCreate(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudUpdate(MetadataType)

Is IPatchDb, IUpdateDb or ISaveDb Crud Request DTO

View Source
Declaration
public static bool IsCrudUpdate(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudUpdate(MetadataType, String)

Is IPatchDb, IUpdateDb or ISaveDb Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrudUpdate(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudCreateOrUpdate(MetadataType)

Is ICreateDb, IPatchDb, IUpdateDb or ISaveDb Crud Request DTO

View Source
Declaration
public static bool IsCrudCreateOrUpdate(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudCreateOrUpdate(MetadataType, String)

Is ICreateDb, IPatchDb, IUpdateDb or ISaveDb Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrudCreateOrUpdate(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

IsCrudDelete(MetadataType)

Is IDeleteDb Crud Request DTO

View Source
Declaration
public static bool IsCrudDelete(this MetadataType type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudDelete(MetadataType, String)

Is IDeleteDb Crud Request DTO for Data Model

View Source
Declaration
public static bool IsCrudDelete(this MetadataType type, string model)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataTypetype
System.Stringmodel

CrudModel(MetadataType)

Retrieve AutoQuery Data Model from AutoQuery CRUD APIs

View Source
Declaration
public static string CrudModel(this MetadataType type)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataTypetype

IsCrudCreate(Type)

View Source
Declaration
public static bool IsCrudCreate(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

IsCrudUpdate(Type)

View Source
Declaration
public static bool IsCrudUpdate(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

IsCrudPatch(Type)

View Source
Declaration
public static bool IsCrudPatch(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

IsCrudDelete(Type)

View Source
Declaration
public static bool IsCrudDelete(Type type)
Returns

System.Boolean

Parameters
TypeName
System.Typetype

FirstGenericArg(MetadataTypeName)

View Source
Declaration
public static string FirstGenericArg(this MetadataTypeName type)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataTypeNametype

CombineSet<T>(T[], T[][])

View Source
Declaration
public static HashSet<T> CombineSet<T>(T[] original, params T[][] others)
Returns

System.Collections.Generic.HashSet<<T>>

Parameters
TypeName
<T>[]original
<T>[][]others
Type Parameters
  • T