Exemplo n.º 1
0
 public IEnumerable <Snapshot> GetSnapshots(Entity entity)
 {
     using (Profiler.Step("SnapshotService.GetSnapshots(Entity)"))
     {
         return(DBExtensions.Include(DB.Snapshots, s => s.Owners).Where(s => s.Owners.Any(o => o.Entity.ID == entity.ID)).ToList());
     }
 }
Exemplo n.º 2
0
        private void CheckInit()
        {
            var clearFunc = _factory.Create <DbEntityInit>();

            Func <int> func = clearFunc.Init;

            var spid = DBExtensions.InvokeWithRetriesThrows(func, 10, 500);
        }
Exemplo n.º 3
0
 public ParCollection Add(string name, object value)
 {
     base.Add(DBExtensions.GetSqlPar(name, value));
     return(this);
 }