摘要:
1:连接数据库(在表示层中添加应用配置文件,写上以下代码)App.config<?xml version="1.0" encoding="utf-8" ?><configuration> <connectionStrings> <add name="constr" connectionString="server=.;uid=sa;pwd= ;database=DB" providerName="System.Data.SqlClient"/> & 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.Runtime.InteropServices; 10 11 namespace WindowsFormsApplication2 12 { 13 ... 阅读全文