public Interface() { var x = new PContextBuilder(); x.Entity <Interface>() .Property(p => p.pContext); pContext = x.Build(); }
public void Test1() { var contextBuilder = new PContextBuilder(); contextBuilder.Entity <FakeEntity>(entity => { }); var context = contextBuilder.Build(); }
public Interface() { var x = new PContextBuilder(); x.Entity <Interface>() .Property(p => p.Id) .IsFilterableByName(); pContext = x.Build(); }
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); }