From f73640e13e3ddf9027e457e61b098a2aecd7c24a Mon Sep 17 00:00:00 2001 From: j502647092 Date: Fri, 19 Jun 2015 16:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B1=BB=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=AF=B4=E6=98=8E...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CitySunlight/HttpUtils.cs | 3 +++ CitySunlight/Product/ProductClassManager.cs | 3 +++ CitySunlight/Product/ProductManager.cs | 3 +++ CitySunlight/SqlHelper.cs | 4 ---- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CitySunlight/HttpUtils.cs b/CitySunlight/HttpUtils.cs index 35ee892..caf2040 100644 --- a/CitySunlight/HttpUtils.cs +++ b/CitySunlight/HttpUtils.cs @@ -5,6 +5,9 @@ using System.Web; namespace CitySunlight { + /// + /// 网页数据管理类 + /// public static class HttpUtils { /// diff --git a/CitySunlight/Product/ProductClassManager.cs b/CitySunlight/Product/ProductClassManager.cs index a023538..59696f2 100644 --- a/CitySunlight/Product/ProductClassManager.cs +++ b/CitySunlight/Product/ProductClassManager.cs @@ -6,6 +6,9 @@ using System.Web; namespace CitySunlight { + /// + /// 商品分类管理类 + /// public static class ProductClassManager { public static SqlHelper sql = new SqlHelper("Data Source=.;Initial Catalog=myApplication;Persist Security Info=True;User ID=sa;Password=325325"); diff --git a/CitySunlight/Product/ProductManager.cs b/CitySunlight/Product/ProductManager.cs index 4dac51a..ea9d96e 100644 --- a/CitySunlight/Product/ProductManager.cs +++ b/CitySunlight/Product/ProductManager.cs @@ -6,6 +6,9 @@ using System.Web; namespace CitySunlight.Product { + /// + /// 商品管理类 + /// public static class ProductManager { private static SqlHelper sql = new SqlHelper("Data Source=.;Initial Catalog=myApplication;Persist Security Info=True;User ID=sa;Password=325325"); diff --git a/CitySunlight/SqlHelper.cs b/CitySunlight/SqlHelper.cs index 73deb71..ef16d7e 100644 --- a/CitySunlight/SqlHelper.cs +++ b/CitySunlight/SqlHelper.cs @@ -19,7 +19,6 @@ namespace CitySunlight /// public string ConnectionString { - set { connectionString = value; } } @@ -174,7 +173,6 @@ namespace CitySunlight cmd.Parameters.Add(parapmeter); } } - con.Open(); result = cmd.ExecuteScalar(); con.Close(); @@ -222,7 +220,6 @@ namespace CitySunlight cmd.Parameters.Add(parameter); } } - con.Open(); count = cmd.ExecuteNonQuery(); con.Close(); @@ -240,7 +237,6 @@ namespace CitySunlight { con.Open(); table = con.GetSchema("Tables"); - } return table; }