コード例 #1
0
 public static ISystemBuilder UseViewsFeature(this ISystemBuilder builder)
 {
     return(builder.UseFeature(feature => feature.Named(SystemFeatureNames.Views)
                               .WithAssemblyVersion()
                               .OnSystemBuild(OnBuild)
                               .OnTableCompositeCreate(OnCompositeCreate)));
 }
コード例 #2
0
        public static ISystemBuilder UseFeature(this ISystemBuilder builder, Action <FeatureBuilder> feature)
        {
            var featureBuilder = new FeatureBuilder();

            feature(featureBuilder);

            return(builder.UseFeature(featureBuilder.Build()));
        }
コード例 #3
0
 public static ISystemBuilder UseRoutinesFeature(this ISystemBuilder builder)
 {
     return(builder.UseFeature(feature => feature.Named(SystemFeatureNames.Routines)
                               .WithAssemblyVersion()
                               .OnSystemBuild(OnBuild)
                               .OnDatabaseCreate(OnDatabaseCreate)
                               .OnTableCompositeSetup(OnCompositeSetup)));
 }
コード例 #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());
        }