コード例 #1
0
 public static void RegisterOData <TCtx, T>(this DbSync <TCtx> sync,
                                            Func <TCtx, DataServiceQuery <T> > queryCtor, Func <DataServiceQuery <T>, DateTime, IQueryable <T> > queryUpdate,
                                            Func <TCtx, DateTime, IQueryable <DeletedObject> > deletedQueryCtor, params string[] tags)
     where T : class, ITimestamp
     where TCtx : DataServiceContext
 {
     sync.Register <T>(CreateQuery(queryCtor, queryUpdate), CreateDeletedQuery(deletedQueryCtor), tags);
 }
コード例 #2
0
 public SyncInfoDeletable(DbSync sync, Func <object, DateTime?, IEnumerable <Task <IEnumerable <TEntity> > > > queryCtor)
     : base(sync)
 {
     _queryCtor = queryCtor;
 }
コード例 #3
0
 protected SyncInfo(DbSync sync)
 {
     _sync = sync;
 }