public virtual async Task <List <T> > GetAllAsync <T>(Query query = null) { var list = await RepositoryUtils.GetValueListAsync <T>(Database, TableName, Redis, query); if (typeof(T).IsAssignableFrom(typeof(Entity))) { foreach (var value in list) { await RepositoryUtils.SyncAndCheckGuidAsync(Database, TableName, Redis, value as Entity); } } return(list); }
public virtual async Task <List <TValue> > GetAllAsync <TValue>(Query query = null) { return(await RepositoryUtils.GetValueListAsync <TValue>(Database, TableName, Redis, query)); }