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