• 自用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

    }
  • 相关阅读:
    axios拦截器
    Vue路由守卫
    HTML横向滚动条和文本超出显示三个小圆点
    Vue用户名vuex和localStorage双向存储
    javaScript Es6数组与对象的实例方法
    使用vue实现复选框单选多选
    正则表达式常用字符
    jest函数单元测试
    ts中的类
    ts中接口的用法
  • 原文地址:https://www.cnblogs.com/freeliver54/p/1103309.html
Copyright © 2020-2023  润新知