62 lines
1.6 KiB
C#
62 lines
1.6 KiB
C#
|
using Common;
|
||
|
using LocalServer;
|
||
|
using RemoteServer;
|
||
|
|
||
|
namespace ServerTest;
|
||
|
|
||
|
public class PipeSeed : IDisposable
|
||
|
{
|
||
|
public PipeSeed()
|
||
|
{
|
||
|
TestConfig = new Config
|
||
|
{
|
||
|
Name = "Test",
|
||
|
RemoteUrl = "D:/FileSyncTest",
|
||
|
RemotePwd = "",
|
||
|
IsDeployDb = true,
|
||
|
IsDeployProject = true,
|
||
|
LocalProjectAbsolutePath = "D:/git/HMES-H7-HNFY/HMES-H7-HNFYMF/HMES-H7-HNFYMF.WEB",
|
||
|
LocalRootPath = "D:/FileSyncTest/src",
|
||
|
|
||
|
RemoteRootPath = "D:/FileSyncTest/dst",
|
||
|
SrcDb = new MSSqlConfig
|
||
|
{
|
||
|
ServerName = "172.16.12.2",
|
||
|
DatebaseName = "HMES_H7_HNFYMF",
|
||
|
User = "hmes-h7",
|
||
|
Password = "Hmes-h7666",
|
||
|
TrustServerCertificate = "True",
|
||
|
SyncTablesData = new List<string>
|
||
|
{
|
||
|
"dbo.sys_Button",
|
||
|
"dbo.sys_Menu",
|
||
|
"dbo.sys_Module",
|
||
|
"dbo.sys_Page",
|
||
|
}
|
||
|
},
|
||
|
DstDb = new MSSqlConfig
|
||
|
{
|
||
|
ServerName = "127.0.0.1",
|
||
|
DatebaseName = "HMES_H7_HNFYMF",
|
||
|
User = "sa",
|
||
|
Password = "0",
|
||
|
TrustServerCertificate = "True"
|
||
|
},
|
||
|
DirFileConfigs = new List<DirFileConfig>{
|
||
|
new DirFileConfig{
|
||
|
DirPath = "/bin",
|
||
|
Excludes = ["/roslyn","/Views"]
|
||
|
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
public Config TestConfig;
|
||
|
|
||
|
public void Dispose()
|
||
|
{
|
||
|
GC.SuppressFinalize(this);
|
||
|
}
|
||
|
}
|