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