public void Register(object queryName, DynamicQueryBucket bucket) { if (Schema.Current.IsCompleted) { throw new InvalidOperationException("Schema already completed"); } queries[queryName] = bucket; }
public void Register(object queryName, DynamicQueryBucket bucket) { queries[queryName] = bucket; }
public void Register <T>(object queryName, Func <IQueryable <T> > lazyQuery, Implementations?entityImplementations = null) { queries[queryName] = new DynamicQueryBucket(queryName, () => DynamicQueryCore.Auto(lazyQuery()), entityImplementations ?? DefaultImplementations(typeof(T), queryName)); }
public void Register <T>(object queryName, Func <DynamicQueryCore <T> > lazyQueryCore, Implementations?entityImplementations = null) { queries[queryName] = new DynamicQueryBucket(queryName, lazyQueryCore, entityImplementations ?? DefaultImplementations(typeof(T), queryName)); }