创建了PLC相关的文件

This commit is contained in:
2025-05-29 21:46:53 +08:00
parent 88ef76bd4d
commit 1294adfbfd
12 changed files with 219 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
namespace PMSWPF.Data
{
internal class DbContext
public class DbContext
{
private static SqlSugarClient _db;
@@ -10,7 +10,7 @@ namespace PMSWPF.Data
{
if (_db == null)
{
string connectionString = "server=127.0.0.1;port=3306;user=root;password=Pgw15221236646; database=PMS;";
string connectionString = "server=127.0.0.1;port=3306;user=root;password=Pgw15221236646; database=pmswpf;";
_db = new SqlSugarClient(new ConnectionConfig()
{
ConnectionString = connectionString,