예제 #1
0
 public ActionResult SaveForm(string keyValue, DataBaseLinkEntity databaseLinkEntity)
 {
     //测试环境防止用户修改连接串
     //if (!string.IsNullOrEmpty(keyValue))
     //{
     //    return Success("测试环境,修改数据库连接无效。");
     //}
     databaseLinkBLL.SaveForm(keyValue, databaseLinkEntity);
     return(Success("操作成功。"));
 }
 public ActionResult SaveForm(string keyValue, DataBaseLinkEntity databaseLinkEntity)
 {
     //测试环境防止用户修改连接串
     //if (!string.IsNullOrEmpty(keyValue))
     //{
     //    return Success("测试环境,修改数据库连接无效。");
     //}
     if (databaseLinkEntity.DbConnection.Contains("*"))
     {
         DataBaseLinkEntity data = databaseLinkBLL.GetEntity(keyValue);
         databaseLinkEntity.DbConnection = data.DbConnection;
     }
     databaseLinkBLL.SaveForm(keyValue, databaseLinkEntity);
     return(Success("操作成功。"));
 }
예제 #3
0
 public ActionResult SaveForm(string keyValue, DataBaseLinkEntity databaseLinkEntity)
 {
     databaseLinkBLL.SaveForm(keyValue, databaseLinkEntity);
     return(Success("操作成功。"));
 }