DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Routines.SystemContextExtensions Class Reference

Static Public Member Functions

static IRoutine ResolveRoutine (this ISystemContext context, Invoke invoke, IQuery queryContext)
 
static void UseRoutineResolver< TResolver > (this ISystemContext context)
 
static void UseRoutineResolver< TResolver > (this ISystemContext context, TResolver resolver)
 
static void UseSystemFunctions (this ISystemContext context)
 

Detailed Description

Definition at line 23 of file SystemContextExtensions.cs.

Member Function Documentation

static IRoutine Deveel.Data.Routines.SystemContextExtensions.ResolveRoutine ( this ISystemContext  context,
Invoke  invoke,
IQuery  queryContext 
)
inlinestatic

Definition at line 24 of file SystemContextExtensions.cs.

24  {
25  var resolvers = context.ResolveAllServices<IRoutineResolver>();
26  foreach (var resolver in resolvers) {
27  var routine = resolver.ResolveRoutine(invoke, queryContext);
28  if (routine != null)
29  return routine;
30  }
31 
32  return null;
33  }
static void Deveel.Data.Routines.SystemContextExtensions.UseRoutineResolver< TResolver > ( this ISystemContext  context)
inlinestatic
Type Constraints
TResolver :class 
TResolver :IRoutineResolver 

Definition at line 35 of file SystemContextExtensions.cs.

35  : class, IRoutineResolver {
36  context.RegisterService<TResolver>();
37  }
static void Deveel.Data.Routines.SystemContextExtensions.UseRoutineResolver< TResolver > ( this ISystemContext  context,
TResolver  resolver 
)
inlinestatic
Type Constraints
TResolver :class 
TResolver :IRoutineResolver 

Definition at line 39 of file SystemContextExtensions.cs.

40  : class, IRoutineResolver {
41  context.RegisterInstance(resolver);
42  }
static void Deveel.Data.Routines.SystemContextExtensions.UseSystemFunctions ( this ISystemContext  context)
inlinestatic

Definition at line 44 of file SystemContextExtensions.cs.

44  {
45  context.UseRoutineResolver(new SystemFunctionsProvider());
46  }

The documentation for this class was generated from the following file: