敲过牛腩新闻发布系统,时隔已久,具体环节忘得也差不多都还给讲师,在ASP.NET学习之际,特意总结,颗粒归仓。
详情
1、新建“空白解决方案”
2、空白解决方案下添加D层、B层、Common、Model、空的Web应用程序,并将Web应用程序设为启动项目
3、Web应用程序的Web.config连接数据库
<connectionStrings>
<add name="connStr" connectionString="server=DESKTOP-JSCP6ES;uid=sa;pwd=123456;database=newssystem"></add>
</connectionStrings>
4、D层添加SqlHelper类、Dal,引用Model、程序集-System.Configuration;B层添加Bll,引用Model、D层;Web应用程序添加html页,引用Model、B层
5、Web