摘要:
一:频繁出现的代码可以使用委托类型的 AOP类似以下代码在控制器中(在Domain中也有若干)重复出现:try { if (!string.IsNullOrEmpty(categoryId)) { var model = new ExerciseCategory(); model.ParentId = parentId; this._exerciseCategoryDal.Update(model); } } catch { return 0; }r... 阅读全文