06 2011 档案

摘要:This article is about the DI of spring.net.The underlying statement demonstrates how the spring.net works.First:Config your fileApp.config as follows.View Code <?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <sectionGroup name="sp 阅读全文
posted @ 2011-06-28 08:50 cnbwang 阅读(126) 评论(0) 推荐(0)
摘要:Method 1.According to the abstract class of ADO.NET,accomplish the core code of ADO.NET,named DBHelper.Then generate a concrete database ADO.NET object using factory,as the below showing.public class DBHelper { //获取数据库类型 private static string strDbType = CommonUtils.GetConfigValueByKey("dbType& 阅读全文
posted @ 2011-06-26 07:44 cnbwang 阅读(439) 评论(0) 推荐(0)
摘要:If you have been using the new Visual Studio 2005 beta you have noticed a few new files showing up in the "bin" folder with the word "vshost" in the filename. For example, when you create a new WindowsApplication and hit F5, you may notice files named "WindowsApplication1.vs 阅读全文
posted @ 2011-06-08 08:27 cnbwang 阅读(202) 评论(1) 推荐(0)
摘要:Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings["code"].Value = DateTime.Now.ToString(); config.ConnectionStrings.ConnectionStrings["orgcon"].ConnectionString = DateTime.Now.ToString(); config.Save(); Conf 阅读全文
posted @ 2011-06-08 08:14 cnbwang 阅读(214) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Reflection; 5 using System.Data; 6 using System.Data.SqlClient; 7 using System.Data.Common; 8 namespace Attr 9 { 10 class Program 11 { 12 static void Main(string[] args) 13 { 14 15 Inventory inv = new Inventory(. 阅读全文
posted @ 2011-06-06 10:32 cnbwang 阅读(450) 评论(0) 推荐(0)