4个回答
展开全部
public class DbOperate
{
public DbOperate()
{
conn = System.Configuration.ConfigurationSettings.AppSettings["constr"].ToString();
server = StringCut(conn,"server=",";");
uid = StringCut(conn,"uid=",";");
pwd = StringCut(conn,"pwd=",";");
database = StringCut(conn,"database=",";");
}
}
{
public DbOperate()
{
conn = System.Configuration.ConfigurationSettings.AppSettings["constr"].ToString();
server = StringCut(conn,"server=",";");
uid = StringCut(conn,"uid=",";");
pwd = StringCut(conn,"pwd=",";");
database = StringCut(conn,"database=",";");
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是不是你的项目没有 using DBOperate???
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
在上面添加引用,把DBOperate.dll加进去。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询