Beispiel #1
0
        public static IQueryConfiguration <TEntity> Build(Func <IQueryConfigurator <TEntity>, IQueryConfigurator <TEntity> > callback)
        {
            var input = new QueryConfigurator <TEntity>();

            var output = callback(input);

            return(output.OutputConfiguration);
        }
Beispiel #2
0
        public static IQueryConfiguration <TEntity, TOut> Build <TOut>(Func <IQueryConfigurator <TEntity>, IQueryConfigurator <TEntity, TOut> > callback)
        {
            var input = new QueryConfigurator <TEntity>();

            var output = callback(input);

            return(output.TransformConfiguration);
        }