@@ -40,7 +40,6 @@ namespace ETModel
if (component == null)
{
component = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == id).Result.FirstOrDefaultAsync();
- dbCacheComponent.AddToCache(component);
}
@@ -35,10 +35,6 @@ namespace ETModel
// 执行查询数据库任务
component = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == this.Id).Result.FirstOrDefaultAsync();
- if (component != null)
- {
- }
this.Tcs.SetResult(component);
catch (Exception e)