public static void UseTriggerListener(this ISystemContext context, ITriggerListener listener)
        {
            var router = context.ResolveService <TriggerEventRouter>();

            if (router == null)
            {
                context.RegisterService <TriggerEventRouter>();
            }

            context.RegisterInstance(listener);
        }
 public static void UserSpatial(this ISystemContext context)
 {
     context.RegisterService <SpatialTypeResolver>();
     context.RegisterInstance <IRoutineResolver>(SpatialSystemFunctions.Resolver);
 }
Exemple #3
0
 public static void UseXml(this ISystemContext context)
 {
     context.RegisterService <XmlTypeResolver>();
     context.RegisterInstance(XmlFunctions.Resolver);
 }
Exemple #4
0
 internal static void RegisterSerializers(ISystemContext context)
 {
     context.RegisterService <CacheNodePointSerializer>();
     context.RegisterService <CompositeNodeSerializer>();
     context.RegisterService <ConstantSelectNodeSerializer>();
     context.RegisterService <CreateFunctionNodeSerializer>();
     context.RegisterService <DistinctNodeSerializer>();
     context.RegisterService <EquiJoinNodeSerializer>();
     context.RegisterService <ExhaustiveSelectNodeSerializer>();
     context.RegisterService <FetchTableNodeSerializer>();
     context.RegisterService <FetchViewNodeSerializer>();
     context.RegisterService <GroupNodeSerializer>();
     context.RegisterService <JoinNodeSerializer>();
     context.RegisterService <LeftOuterJoinNodeSerializer>();
     context.RegisterService <LogicalUnionNodeSerializer>();
     context.RegisterService <MarkerNodeSerializer>();
     context.RegisterService <NaturalJoinNodeSerializer>();
     context.RegisterService <NonCorrelatedAnyAllNodeSerializer>();
     context.RegisterService <RageSelectNodeSerializer>();
     context.RegisterService <SimplePatternSelectNodeSerializer>();
     context.RegisterService <SimpleSelectNodeSerializer>();
     context.RegisterService <SingleRowTableNodeSerializer>();
     context.RegisterService <SortNodeSerializer>();
     context.RegisterService <SubsetNodeSerializer>();
     context.RegisterService <LimitNodeSerializer>();
 }
Exemple #5
0
 public static void UseDefaultQueryPlanner(this ISystemContext context)
 {
     context.UnregisterService <IQueryPlanner>();
     context.RegisterService <QueryPlanner>();
 }
 public static void UseRoutineResolver <TResolver>(this ISystemContext context) where TResolver : class, IRoutineResolver
 {
     context.RegisterService <TResolver>();
 }