Skip to main content

GenerateCrudServices

Assembly: ServiceStack.Server.dll
View Source
Declaration
public class GenerateCrudServices : object, IGenerateCrudServices

Properties

IncludeCrudOperations

List of AutoQuery Operations to generate

View Source
Declaration
public List<string> IncludeCrudOperations { get; set; }

ExcludeTables

List of Tables to be excluded. All Tables used for built-in ServiceStack features are excluded by default

View Source
Declaration
public List<string> ExcludeTables { get; set; }

CreateServices

Generate services

View Source
Declaration
public List<CreateCrudServices> CreateServices { get; set; }

GenerateOperationsFilter

Customize AutoGen Operation Generation

View Source
Declaration
public Action<AutoGenContext> GenerateOperationsFilter { get; set; }

AutoRegister

Auto Register AutoQuery and Crud Services for Default DB

View Source
Declaration
public bool AutoRegister { get; set; }

MetadataTypesFilter

View Source
Declaration
public Action<MetadataTypes, MetadataTypesConfig, IRequest> MetadataTypesFilter { get; set; }

TypeFilter

View Source
Declaration
public Action<MetadataType, IRequest> TypeFilter { get; set; }

ServiceFilter

View Source
Declaration
public Action<MetadataOperationType, IRequest> ServiceFilter { get; set; }

IncludeType

View Source
Declaration
public Func<MetadataType, bool> IncludeType { get; set; }

IncludeService

View Source
Declaration
public Func<MetadataOperationType, bool> IncludeService { get; set; }

AddDataContractAttributes

View Source
Declaration
public bool AddDataContractAttributes { get; set; }

AddIndexesToDataMembers

View Source
Declaration
public bool AddIndexesToDataMembers { get; set; }

AccessRole

View Source
Declaration
public string AccessRole { get; set; }

ResolveColumnType

View Source
Declaration
public Func<ColumnSchema, IOrmLiteDialectProvider, Type> ResolveColumnType { get; set; }

GenerateMissingServicesFilter

View Source
Declaration
public Action<GenerateMissingServicesContext> GenerateMissingServicesFilter { get; set; }

TableSchemasFilter

View Source
Declaration
public Action<List<TableSchema>> TableSchemasFilter { get; set; }

ServiceRoutes

View Source
Declaration
public Dictionary<Type, string[]> ServiceRoutes { get; set; }

Methods

DefaultResolveColumnType(ColumnSchema, IOrmLiteDialectProvider)

View Source
Declaration
public static Type DefaultResolveColumnType(ColumnSchema column, IOrmLiteDialectProvider dialect)
Returns

Type

Parameters
TypeName
ServiceStack.OrmLite.ColumnSchemacolumn
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

GenerateMissingServices(AutoQueryFeature)

View Source
Declaration
public List<Type> GenerateMissingServices(AutoQueryFeature feature)
Returns

List<Type>

Parameters
TypeName
ServiceStack.AutoQueryFeaturefeature

GetCachedDbSchema(IDbConnectionFactory, String, String, List<String>, List<String>)

View Source
Declaration
public DbSchema GetCachedDbSchema(IDbConnectionFactory dbFactory, string schema = null, string namedConnection = null, List<string> includeTables = null, List<string> excludeTables = null)
Returns

ServiceStack.DbSchema

Parameters
TypeName
ServiceStack.Data.IDbConnectionFactorydbFactory
System.Stringschema
System.StringnamedConnection
List<System.String>includeTables
List<System.String>excludeTables

GetTableSchemas(IDbConnectionFactory, String, String, List<String>, List<String>)

View Source
Declaration
public static List<TableSchema> GetTableSchemas(IDbConnectionFactory dbFactory, string schema = null, string namedConnection = null, List<string> includeTables = null, List<string> excludeTables = null)
Returns

List<ServiceStack.TableSchema>

Parameters
TypeName
ServiceStack.Data.IDbConnectionFactorydbFactory
System.Stringschema
System.StringnamedConnection
List<System.String>includeTables
List<System.String>excludeTables

GenerateSource(IRequest, CrudCodeGenTypes, Action<AutoGenContext>, List<String>)

View Source
Declaration
public static string GenerateSource(IRequest req, CrudCodeGenTypes request, Action<AutoGenContext> generateOperationsFilter, List<string> addQueryParamOptions = null)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.CrudCodeGenTypesrequest
Action<ServiceStack.AutoGenContext>generateOperationsFilter
List<System.String>addQueryParamOptions

ResolveMetadataTypes(CrudCodeGenTypes, IRequest, Action<AutoGenContext>)

View Source
Declaration
public static Tuple<MetadataTypes, MetadataTypesConfig> ResolveMetadataTypes(CrudCodeGenTypes request, IRequest req, Action<AutoGenContext> generateOperationsFilter)
Returns

Tuple<ServiceStack.MetadataTypes,ServiceStack.MetadataTypesConfig>

Parameters
TypeName
ServiceStack.CrudCodeGenTypesrequest
ServiceStack.Web.IRequestreq
Action<ServiceStack.AutoGenContext>generateOperationsFilter

Implements