示例#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());
        }
 /// <summary>
 /// Shutdown various Services.
 /// </summary>
 protected void ShutdownServices()
 {
     Logger.ShutDown();
     Cacher.Clear();
 }
 /// <summary>
 /// Clear the cache on shutdown of the application.
 /// </summary>
 public override void ShutDown()
 {
     Cacher.Clear();
 }