摘要:
--表:T_UsersInfo(用户详情表)if exists(select name from sys.objects where name='T_UserInfo')drop table T_UserInfogocreate table T_UserInfo( C_UserID int identity(1,1), C_UserName nvarchar(20), C_RealName nvarchar(20), C_Age int, C_Sex bit, C_Mobile char(11), C_Phone char(11), C_Email nvarchar(50), 阅读全文
摘要:
using System;using System.Data;using System.Data.SqlClient;using System.Configuration;/// <summary>/// 针对 SQL Server 数据库操作的通用类/// 作者:周金桥/// </summary>public class SqlDbHelper{ /// <summary> /// 设置数据库链接字符串 /// </summary> public string connectionString=ConfigurationManager.Conn 阅读全文