摘要: 引言主要是讲了关于WPF只是表现层的工具。第一章: XAML: 可扩张应用程序标记语言 Extensible Application Markup Language什么是XAML? XAML 是WPF技术中专门用于设计UI的语言。第二章: XAML创建一个空的实例,对空的实例进行解析。1. 对于源代... 阅读全文
posted @ 2014-10-09 14:42 阳光少年1712 阅读(540) 评论(0) 推荐(0)
摘要: #region 通过带参数的Sql语句来实现模糊查询(多条件查询) StringBuilder sb = new StringBuilder("select * from books"); List listWheres = new... 阅读全文
posted @ 2014-09-29 14:20 阳光少年1712 阅读(1996) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-09-29 10:49 阳光少年1712 阅读(256) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-09-28 19:52 阳光少年1712 阅读(298) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-09-28 16:49 阳光少年1712 阅读(552) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Text;namespace 自己封... 阅读全文
posted @ 2014-09-28 15:29 阳光少年1712 阅读(223) 评论(0) 推荐(0)
摘要: 有两种方式://通过读取配置文件来获取连接字符串第一种方式:App.config 文件的格式:在SqlHelper中通过代码读取配置文件中的字符串:(需添加引用:using System.Configuration;)private static readonly string conStr = ... 阅读全文
posted @ 2014-09-28 14:48 阳光少年1712 阅读(451) 评论(0) 推荐(0)
摘要: 1.ADO.NET 连接数据库的模版string constr = "data source=127.0.0.1\\mysql2008;database=dbtest;integrated security=true";try{using (SqlConnection con=new SqlCo... 阅读全文
posted @ 2014-09-24 16:59 阳光少年1712 阅读(175) 评论(0) 推荐(0)