源码信息

最新源码评论

综合讨论 下载前咨询( 0 人) | 下载后讨论( 4 人 )

  • 评论者:xianx***
    xianx***(用户[下载于:2017-03-06 17:37]) 发表于:2017-03-07 17:48:51

    数据库没有用户登录SYS_UserAccount表,还有没有找到connectionString="data source=${datasource};database=${database};user id=${userid};password=${password}对应的数据库字段,并且没有erptestdb这个数据库

    1 个回复
    • 回复者:wwd10***
      wwd10***(作者)回复于:2017-03-08 13:49:42

      有的,数据库您自己恢复就可以的,51平台也测试过的

  • 评论者:fdycv***
    fdycv***(用户[下载于:2016-03-04 15:17]) 发表于:2016-03-04 16:21:26

    web.config里面连接字符串加密了,楼主能否把解密码告诉我,不然根本没办法用

    2 个回复
    • 回复者:wwd10***
      wwd10***(作者)回复于:2016-03-07 20:22:57

      <div> ?? </div> <p> 1 修改解密代码,变成明文: </p> <p> NBIbatis.DAO.IBatisMapFactory 的 </p> <p> //解密连接字符串<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string connectionString = EncriptHelper.Decode(settings.ConnectionString); </p>

    • 回复者:wwd10***
      wwd10***(作者)回复于:2016-03-07 20:24:14

      2 调用EncriptHelper. <div> ?? </div> <p> Encode得到加密字符串 </p> <p> 字符串格式:"Data Source=172.21.6.64;Initial Catalog=erptestdb;User ID=sa;Password=sa" </p>

  • 评论者:fdycv***
    fdycv***(用户[下载于:2016-03-04 15:17]) 发表于:2016-03-04 16:14:34

    web.config里配置了数据库连接但是还是连接不上

    3 个回复
    • 回复者:wwd10***
      wwd10***(作者)回复于:2016-03-04 19:57:21

      <p> 1 请运行程序并调用&nbsp;EncriptHelper.Encode("您的连接字符串"),返回的就是加密字符串 </p> <p> 如:Data Source=172.21.6.64;Initial Catalog=erptestdb;User ID=sa;Password=sa </p> <p> 2 不使用加密 </p> <p> <br /> </p>

    • 回复者:wwd10***
      wwd10***(作者)回复于:2016-03-04 19:59:46

      <p> NBIbatis.DAO.IBatisMapFactory </p> <p> &nbsp;public static ISqlMapper GetMapper(EnumDBConfig ConfigNm)<br /> &nbsp; &nbsp; &nbsp; &nbsp; {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string strConfigNm = ConfigNm.ToString();<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ConfigNm == EnumDBConfig.Default)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strConfigNm = System.Configuration.ConfigurationManager.ConnectionStrings[ConfigNm.ToString()].ToString();<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } </p>

    • 回复者:wwd10***
      wwd10***(作者)回复于:2016-03-04 20:00:11

      ConnectionStringSettings settings = System.Configuration.ConfigurationManager.ConnectionStrings[strConfigNm];<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //解密连接字符串<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //string connectionString = EncriptHelper.Decode(settings.ConnectionString);<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //不加密<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string connectionString = settings.ConnectionString;

  • 评论者:devsq***
    devsq***(用户[下载于:2015-03-26 14:40]) 发表于:2015-03-27 09:23:47

    数据库表跟XML配置的表根本对应不上的

    1 个回复
    • 回复者:wwd10***
      wwd10***(作者)回复于:2015-04-07 09:57:05

      因为是从现有系统抽取的,部分没有对应,有疑问的表可以联系我,或留言,谢谢。