예제 #1
0
        public Task Update(long id, double value)
        {
            Cacher.Clear();
            var entityForChange = EntityById(id);

            entityForChange.Setter(value);
            return(Repository.SaveChangesAsync());
        }
예제 #2
0
        public Task Remove(long id)
        {
            Cacher.Clear();
            var entityForDelete = EntityById(id);

            Repository.Table().Remove(entityForDelete);
            return(Repository.SaveChangesAsync());
        }
예제 #3
0
 /// <summary>
 /// Shutdown various Services.
 /// </summary>
 protected void ShutdownServices()
 {
     Logger.ShutDown();
     Cacher.Clear();
 }
예제 #4
0
 /// <summary>
 /// Clear the cache on shutdown of the application.
 /// </summary>
 public override void ShutDown()
 {
     Cacher.Clear();
 }