Update gbase

This commit is contained in:
sunkaixuan
2024-06-13 16:58:58 +08:00
parent 260e537709
commit b31e3f88e4
14 changed files with 558 additions and 57 deletions

View File

@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Odbc;
using System.Text;
using GBS.Data.GBasedbt;
namespace SqlSugar.GBase
{
/// <summary>
@@ -10,15 +11,15 @@ namespace SqlSugar.GBase
/// </summary>
public class GBaseDataAdapter : IDataAdapter
{
private OdbcCommand command;
private GbsCommand command;
private string sql;
private OdbcConnection _sqlConnection;
private GbsConnection _sqlConnection;
/// <summary>
/// SqlDataAdapter
/// </summary>
/// <param name="command"></param>
public GBaseDataAdapter(OdbcCommand command)
public GBaseDataAdapter(GbsCommand command)
{
this.command = command;
}
@@ -33,7 +34,7 @@ namespace SqlSugar.GBase
/// </summary>
/// <param name="sql"></param>
/// <param name="_sqlConnection"></param>
public GBaseDataAdapter(string sql, OdbcConnection _sqlConnection)
public GBaseDataAdapter(string sql, GbsConnection _sqlConnection)
{
this.sql = sql;
this._sqlConnection = _sqlConnection;
@@ -42,13 +43,13 @@ namespace SqlSugar.GBase
/// <summary>
/// SelectCommand
/// </summary>
public OdbcCommand SelectCommand
public GbsCommand SelectCommand
{
get
{
if (this.command == null)
{
var conn = (OdbcConnection)this._sqlConnection;
var conn = (GbsConnection)this._sqlConnection;
this.command = conn.CreateCommand();
this.command.CommandText = sql;
}