摘要: 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"/> & 阅读全文
posted @ 2012-10-31 22:10 JeffQing 阅读(4712) 评论(23) 推荐(5) 编辑
摘要: 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 ... 阅读全文
posted @ 2012-10-31 16:19 JeffQing 阅读(1180) 评论(0) 推荐(0) 编辑