Update Mongodb

This commit is contained in:
sunkaixuan
2025-05-04 15:59:46 +08:00
parent 739961e618
commit c377d1e0ae
13 changed files with 205 additions and 84 deletions

View File

@@ -1,4 +1,5 @@
using MongoDb.Ado.data;
using Microsoft.Data.SqlClient;
using MongoDb.Ado.data;
using SqlSugar.MongoDbCore;
using System;
using System.Collections.Generic;
@@ -99,7 +100,9 @@ namespace SqlSugar.MongoDb
public override DbCommand GetCommand(string sql, SugarParameter[] pars)
{
throw new NotImplementedException();
MongoDbCommand mongoDbCommand = new MongoDbCommand(sql,(MongoDbConnection)this.Connection);
CheckConnection();
return mongoDbCommand;
}
}
}