zoukankan      html  css  js  c++  java
  • 自用DBClass SQLServer数据库操作类

    using System;
    using System.Data;
    using System.Data.SqlClient;
    using System.Collections.Generic;
    using System.Reflection;

    /// <summary>
    /// DBClass : SQL Server 数据库 操作类
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    ///     xx. YYYY/MM/DD   VER     AUTHOR      COMMENTS        
    ///      1. 2008/03/04           Free        CREATE
    /// </history>


    public class DBClass
    {
        SqlConnection theSqlConnection 
    = new SqlConnection();

        
    得到数据库连接字串

        
    运行Select查询 得到一个DataSet

        
    运行查询 得到DataTable

        
    运行非Select的Insert或Update或Delete语句 成功返回true 否则返回false

    }
  • 相关阅读:
    各种 SDk
    面试第一周
    KVC/KVO 的概述和使用
    How Many Tables HDU
    The Suspects POJ
    Wireless Network POJ
    Layout POJ
    The Shortest Path in Nya Graph HDU
    Extended Traffic LightOJ
    Tram POJ
  • 原文地址:https://www.cnblogs.com/freeliver54/p/1103309.html
Copyright © 2011-2022 走看看