• 2024-06-03基于MVC的 DBHelper
    基于MVC的DBHelperpublicstaticclassDBHelper{///<summary>/////从配置文件中读取连接字符串///</summary>publicstaticstringConstr=ConfigurationManager.ConnectionStrings["UserInforGer"].ConnectionString;///<
  • 2024-03-25【转载】基于Ado.Net多个关系型数据库DbHelper封装
    主要是记录一下,后续有用的时候再翻看。publicclassDbHelper{privatereadonlyDataBase_dataBase;publicDbHelper(DataBasedataBase){_dataBase=dataBase;}publicDataBaseGetDataBase(){
  • 2024-01-14C#中的数据库访问类DBHelper
    1、在配置文件中添加连接字符串首先在配置文件中的<configuration>中加入数据库连接字符串,配置文件后缀为.config,例如:App.config<connectionStrings><addname="你给此条链接起的名字,随便起,访问的时候可以用。比如:AAA"connectionString="DataSource=你的服务器地址;Init
  • 2023-12-17C#中的数据库访问类DBHelper
    1、在配置文件中添加连接字符串首先在配置文件中的<configuration>中加入数据库连接字符串,配置文件后缀为.config,例如:App.config<connectionStrings><addname="你给此条链接起的名字,随便起,访问的时候可以用。比如:AAA"connectionString="DataSource=你的服务器地址;Init
  • 2023-12-01Flutter开发type 'Null' is not a subtype of type 'Handler'报错
    问题描述今天调试flutter程序时报错,程序运行时报如下错误:type'Null'isnotasubtypeoftype'Handler'问题分析类型“Future<int>”不是类型强制转换中类型“int”的子类型。这里不能强制转换,要拿到DatabaseHelper.dbhelper.getTaskGroupRelationOrde()返回结果可以使用Dat
  • 2023-11-28Flutter开发type 'Future<int>' is not a subtype of type 'int' in type cast错误
    问题描述今天调试flutter程序时报错。程序运行时报如下错误:type'Future<int>'isnotasubtypeoftype'int'intypecast错误源码intorder=DatabaseHelper.dbhelper.getTaskGroupRelationOrder()asint;
  • 2023-06-10UtilityHelper DbHelper
    usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.IO;usingSystem.Linq;usingSystem.Reflection;usingSystem.Runtime.Serialization;usingSystem.Runtime.Serialization.Formatters.Binary;usingSy
  • 2023-06-09Dapper.Lite 背景介绍
    本人以前增删改查项目做的多,先是用ADO.NET+动软代码生成器,后来是NHibernate,再后来是各种DbHelper。我把各种DbHelper合成了一个DbHelper,后改名为LiteSql,后来觉得不如直接调用Dapper,于是有了Dapper.LiteSql。因为不想再维护两套,所以改名为Dapper.Lite,以后只维护这个。5000多行代码
  • 2023-02-28DBHelper
    publicclassDBHelper{//数据库连接字符串(web.config来配置),多数据库可使用DbHelperSQLP来实现.//publicstaticstringconnectionString=Confi
  • 2023-02-062009-05-第一次专业对口的面试“默写 DbHelper”
     两人没在一起的时间,刘文轩也一直在准备简历。可一直没等到合适的面试。有一次学习安排的一次面试是在渝北特别远的一个公司,面试的人就在一个办公室里给我们找了台电脑并
  • 2022-12-05微软通用的DBHelper
    ​​viewplain​​1.usingSystem;2.3.usingSystem.Configuration;4.5.usingSystem.Data;6.7.usingSystem.Data.Common;8.9.usingSystem
  • 2022-10-27DBHelper类
    usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Data;usingSystem.Data.SqlCl
  • 2022-09-29C#中的简单DBHelper类
    publicclassDBHelper{//创建数据库连接字符串publicstaticstringconstr="server=.;database=你的数据库名称;Uid=数据库登录用户名;pwd=数据库登录密码";//
  • 2022-08-18记录QT QSqlDatabase SQLite 多线程使用时报错..
    首先QSqlDatabase同一个实例,不能多线程使用.如果多线程使用,需要给每个线程创建一个QSqlDatabase实例,一般是用Map维护各个线程实例链接,key是线程ID,value就是QSqlDa