Exemple #1
0
        public Interface()
        {
            var x = new PContextBuilder();

            x.Entity <Interface>()
            .Property(p => p.pContext);

            pContext = x.Build();
        }
Exemple #2
0
        public void Test1()
        {
            var contextBuilder = new PContextBuilder();

            contextBuilder.Entity <FakeEntity>(entity =>
            {
            });

            var context = contextBuilder.Build();
        }
Exemple #3
0
        public Interface()
        {
            var x = new PContextBuilder();

            x.Entity <Interface>()
            .Property(p => p.Id)
            .IsFilterableByName();

            pContext = x.Build();
        }
Exemple #4
0
        public static IServiceCollection UsePanner(this IServiceCollection services, Action <PContextBuilder> configure)
        {
            var contextBuilder = new PContextBuilder();

            configure(contextBuilder);
            services.AddSingleton <IPContext>(contextBuilder.Build());

            services.Configure <MvcOptions>(options =>
            {
                options.ModelBinderProviders.Insert(0, new ParticlesBinderProvider());
            });

            return(services);
        }