Ejemplo n.º 1
0
 public static ISystemBuilder UseViewsFeature(this ISystemBuilder builder)
 {
     return(builder.UseFeature(feature => feature.Named(SystemFeatureNames.Views)
                               .WithAssemblyVersion()
                               .OnSystemBuild(OnBuild)
                               .OnTableCompositeCreate(OnCompositeCreate)));
 }
        public static ISystemBuilder UseFeature(this ISystemBuilder builder, Action <FeatureBuilder> feature)
        {
            var featureBuilder = new FeatureBuilder();

            feature(featureBuilder);

            return(builder.UseFeature(featureBuilder.Build()));
        }
 public static ISystemBuilder UseRoutinesFeature(this ISystemBuilder builder)
 {
     return(builder.UseFeature(feature => feature.Named(SystemFeatureNames.Routines)
                               .WithAssemblyVersion()
                               .OnSystemBuild(OnBuild)
                               .OnDatabaseCreate(OnDatabaseCreate)
                               .OnTableCompositeSetup(OnCompositeSetup)));
 }
Ejemplo n.º 4
0
        public static ISystemBuilder UseSequencesFeature(this ISystemBuilder builder)
        {
            return(builder.UseFeature(feature => feature.Named(SystemFeatureNames.Sequences)
                                      .WithAssemblyVersion()
                                      .OnSystemBuild(OnBuild)
                                      .OnTableCompositeCreate(OnCompositeCreate)));

            //builder.Use<ITableCompositeCreateCallback>(options => options
            //	.With<SequencesInit>()
            //	.InQueryScope());
        }