Pre Merge pull request !73 from Rookie/master

This commit is contained in:
Rookie 2025-03-28 05:00:30 +00:00 committed by Gitee
commit 2e36cd5109
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12,6 +12,7 @@ namespace SqlSugar
{
private IFastBuilder GetBuider()
{
var className = string.Empty;
switch (this.context.CurrentConnectionConfig.DbType)
{
case DbType.MySql:
@ -45,11 +46,15 @@ namespace SqlSugar
case DbType.Oscar:
break;
case DbType.QuestDB:
return new QuestDBFastBuilder(this.entityInfo);
return new QuestDBFastBuilder(this.entityInfo);
case DbType.Custom:
className = InstanceFactory.CustomNamespace + "." + InstanceFactory.CustomDbName + "FastBuilder";
break;
default:
className = $"SqlSugar.{this.context.CurrentConnectionConfig.DbType}FastBuilder";
break;
}
var reslut = InstanceFactory.CreateInstance<IFastBuilder>($"SqlSugar.{this.context.CurrentConnectionConfig.DbType}FastBuilder");
var reslut = InstanceFactory.CreateInstance<IFastBuilder>(className);
reslut.CharacterSet = this.CharacterSet;
reslut.FastEntityInfo = this.entityInfo;
return reslut;