コード例 #1
0
        public void Register(object queryName, DynamicQueryBucket bucket)
        {
            if (Schema.Current.IsCompleted)
            {
                throw new InvalidOperationException("Schema already completed");
            }

            queries[queryName] = bucket;
        }
コード例 #2
0
 public void Register(object queryName, DynamicQueryBucket bucket)
 {
     queries[queryName] = bucket;
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 public void Register <T>(object queryName, Func <DynamicQueryCore <T> > lazyQueryCore, Implementations?entityImplementations = null)
 {
     queries[queryName] = new DynamicQueryBucket(queryName, lazyQueryCore, entityImplementations ?? DefaultImplementations(typeof(T), queryName));
 }