public IEnumerable <TModel> AsReadable() { var type = typeof(TModel); string query = string.Format(Queries.selectWithTableName, type.Name); foreach (var reader in _dbContext.Execute(query)) { yield return(reader.ToModel <TModel>()); } }