Пример #1
0
 /// <summary>
 /// 更新MongoDB某个指
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="Exp"></param>
 /// <param name="Property"></param>
 /// <param name="Value"></param>
 /// <returns></returns>
 public static async Task MongoDbCacheUpdateAsync <T>(Expression <Func <T, bool> > Exp, string Property, string Value)
 {
     await Task.Run(() => MongoDbCaches.Update(Exp, Property, Value));
 }
Пример #2
0
 /// <summary>
 /// 更新MongoDB某个指
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="Exp"></param>
 /// <param name="Property"></param>
 /// <param name="Value"></param>
 public static void MongoDbCacheUpdate <T>(Expression <Func <T, bool> > Exp, string Property, string Value)
 {
     MongoDbCaches.Update(Exp, Property, Value);
 }