private SysEnumNameEntity PrepareFormData() { //TODO:需要校验参数的合法性 var entity = new SysEnumNameEntity(); entity.Type = txtType.Text; entity.Value = txtValue.Text; entity.Name = txtName.Text; return entity; }
public void UpdateSysEnumName(SysEnumNameEntity entity) { entity.Update(); SetSysEnumNameListCache(); }
public void AddNewSysEnumName(SysEnumNameEntity entity) { entity.Insert(); SetSysEnumNameListCache(); }
public void DeleteSysEnumName(string type, string value) { SysEnumNameEntity entity = new SysEnumNameEntity() {Type = type, Value = value}; EntityExecution.Delete(entity); SetSysEnumNameListCache(); }