public static int Save(SE_DictionaryConfigModel entity)
 {
     if (entity.Id <= 0)
     {//添加
         if (DALSE_DictionaryConfig.Exist(entity))
         {
             return(-1);
         }
         else
         {
             if (DALSE_DictionaryConfig.Add(entity))
             {
                 return(1);
             }
             else
             {
                 return(0);
             }
         }
     }
     else
     {
         if (DALSE_DictionaryConfig.Update(entity))
         {
             return(1);
         }
         else
         {
             return(0);
         }
     }
 }
 public static bool Delete(string id)
 {
     return(DALSE_DictionaryConfig.Delete(id));
 }
 public static SE_DictionaryConfigModel GetEntity(string id)
 {
     return(DALSE_DictionaryConfig.GetEntity(id).ConvertTo <SE_DictionaryConfigModel>().ToList().FirstOrDefault());
 }
 public static List <SE_DictionaryConfigModel> GetList()
 {
     return(DALSE_DictionaryConfig.GetTable().ConvertTo <SE_DictionaryConfigModel>().ToList());
 }