示例#1
0
 public IEnumerable <CategoryData> GetCategoryData()
 {
     return(DataAccessHelper.FillTable <CategoryData>($"SELECT * FROM {TableName}", _configuration));
 }
示例#2
0
 public CategoryData GetCategoryData(int categoryId)
 {
     return(DataAccessHelper.GetSingle <CategoryData>($"SELECT * FROM {TableName} WHERE {ColumnNames.PrimaryKey} = {categoryId}", _configuration));
 }
 public LearningData GetLearningData(int learningDataId)
 {
     return(DataAccessHelper.GetSingle <LearningData>($"SELECT * FROM {TableName} WHERE {ColumnNames.PrimaryKey} = {learningDataId}", _configuration));
 }