chore: initial commit

This commit is contained in:
XingCheng3
2026-05-29 09:34:04 +08:00
commit 78ae9dcd2e
683 changed files with 68110 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseClient
{
public class DBClientFactory
{
DatabaseFactory factory;
public DBClientFactory(string dbTypeStr)
{
switch (dbTypeStr.ToLower())
{
case "mysql":
{
factory = new MysqlDatabaseFactory();
break;
}
case "sqlite":
{
factory = new SqliteDatabaseFactory();
break;
}
case "mssql":
{
factory = new MssqlDatabaseFactory();
break;
}
default:
{
factory = new MysqlDatabaseFactory();
break;
}
}
}
public DBClient Create()
{
return factory.Create();
}
}
}