Ejemplo n.º 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);
 }
 public SyncInfoDeletable(DbSync sync, Func <object, DateTime?, IEnumerable <Task <IEnumerable <TEntity> > > > queryCtor)
     : base(sync)
 {
     _queryCtor = queryCtor;
 }
Ejemplo n.º 3
0
 protected SyncInfo(DbSync sync)
 {
     _sync = sync;
 }