feat: 修改了错别字

This commit is contained in:
ZhaoLei 2024-10-28 17:28:18 +08:00
parent eb80f9abb8
commit a0889310d7
6 changed files with 14 additions and 12 deletions

View file

@ -21,10 +21,12 @@ public class DirFileConfig
/// 本地文件信息,也是即将发布的文件信息,通常是最新的版本 /// 本地文件信息,也是即将发布的文件信息,通常是最新的版本
/// </summary> /// </summary>
public Dir? LocalDirInfo { get; set; } public Dir? LocalDirInfo { get; set; }
/// <summary> /// <summary>
/// 差异文件信息 /// 差异文件信息
/// </summary> /// </summary>
public Dir? DiffDirInfo { get; set; } public Dir? DiffDirInfo { get; set; }
/// <summary> /// <summary>
/// 远程文件信息,通常是较旧的版本 /// 远程文件信息,通常是较旧的版本
/// </summary> /// </summary>
@ -41,7 +43,7 @@ public class MSSqlConfig
/// <summary> /// <summary>
/// db名称 /// db名称
/// </summary> /// </summary>
public required string DatebaseName { get; set; } public required string DatabaseName { get; set; }
/// <summary> /// <summary>
/// 用户 /// 用户

View file

@ -323,7 +323,7 @@ public class DeployMSSqlHelper(LocalSyncServer context)
// 不要log file 了 // 不要log file 了
//+ $" /DiagnosticsFile:{LocalSyncServer.TempRootFile}/{Context.NotNullSyncConfig.Id.ToString()}/{Context.NotNullSyncConfig.Id.ToString()}.log" //+ $" /DiagnosticsFile:{LocalSyncServer.TempRootFile}/{Context.NotNullSyncConfig.Id.ToString()}/{Context.NotNullSyncConfig.Id.ToString()}.log"
+ $" /p:ExtractAllTableData=false /p:VerifyExtraction=true /SourceServerName:{Context.NotNullSyncConfig.SrcDb.ServerName}" + $" /p:ExtractAllTableData=false /p:VerifyExtraction=true /SourceServerName:{Context.NotNullSyncConfig.SrcDb.ServerName}"
+ $" /SourceDatabaseName:{Context.NotNullSyncConfig.SrcDb.DatebaseName} /SourceUser:{Context.NotNullSyncConfig.SrcDb.User}" + $" /SourceDatabaseName:{Context.NotNullSyncConfig.SrcDb.DatabaseName} /SourceUser:{Context.NotNullSyncConfig.SrcDb.User}"
+ $" /SourcePassword:{Context.NotNullSyncConfig.SrcDb.Password} /SourceTrustServerCertificate:{Context.NotNullSyncConfig.SrcDb.TrustServerCertificate}" + $" /SourcePassword:{Context.NotNullSyncConfig.SrcDb.Password} /SourceTrustServerCertificate:{Context.NotNullSyncConfig.SrcDb.TrustServerCertificate}"
+ $" /p:ExtractReferencedServerScopedElements=False /p:IgnoreUserLoginMappings=True /p:IgnorePermissions=True"; + $" /p:ExtractReferencedServerScopedElements=False /p:IgnoreUserLoginMappings=True /p:IgnorePermissions=True";
if (Context.NotNullSyncConfig.SrcDb.SyncTablesData != null) if (Context.NotNullSyncConfig.SrcDb.SyncTablesData != null)
@ -427,4 +427,4 @@ public class FinallyPublishHelper(LocalSyncServer context)
{ {
Context.LocalPipe.SendMsg(msg).Wait(); Context.LocalPipe.SendMsg(msg).Wait();
} }
} }

View file

@ -151,7 +151,7 @@ public class FinallyPublishHelper(RemoteSyncServer context)
{ {
var arguments = var arguments =
$" /Action:Publish /SourceFile:{RemoteSyncServer.TempRootFile}/{Context.NotNullSyncConfig.Id.ToString()}/{Context.NotNullSyncConfig.Id}.dacpac" $" /Action:Publish /SourceFile:{RemoteSyncServer.TempRootFile}/{Context.NotNullSyncConfig.Id.ToString()}/{Context.NotNullSyncConfig.Id}.dacpac"
+ $" /TargetServerName:{Context.NotNullSyncConfig.DstDb.ServerName} /TargetDatabaseName:{Context.NotNullSyncConfig.DstDb.DatebaseName}" + $" /TargetServerName:{Context.NotNullSyncConfig.DstDb.ServerName} /TargetDatabaseName:{Context.NotNullSyncConfig.DstDb.DatabaseName}"
+ $" /TargetUser:{Context.NotNullSyncConfig.DstDb.User} /TargetPassword:{Context.NotNullSyncConfig.DstDb.Password} /TargetTrustServerCertificate:True"; + $" /TargetUser:{Context.NotNullSyncConfig.DstDb.User} /TargetPassword:{Context.NotNullSyncConfig.DstDb.Password} /TargetTrustServerCertificate:True";
ProcessStartInfo startInfo = ProcessStartInfo startInfo =

View file

@ -22,7 +22,7 @@ public class PipeSeed : IDisposable
SrcDb = new MSSqlConfig SrcDb = new MSSqlConfig
{ {
ServerName = "172.16.12.2", ServerName = "172.16.12.2",
DatebaseName = "HMES_H7_HNFYMF", DatabaseName = "HMES_H7_HNFYMF",
User = "hmes-h7", User = "hmes-h7",
Password = "Hmes-h7666", Password = "Hmes-h7666",
TrustServerCertificate = "True", TrustServerCertificate = "True",
@ -37,7 +37,7 @@ public class PipeSeed : IDisposable
DstDb = new MSSqlConfig DstDb = new MSSqlConfig
{ {
ServerName = "127.0.0.1", ServerName = "127.0.0.1",
DatebaseName = "HMES_H7_HNFYMF", DatabaseName = "HMES_H7_HNFYMF",
User = "sa", User = "sa",
Password = "0", Password = "0",
TrustServerCertificate = "True" TrustServerCertificate = "True"

View file

@ -27,7 +27,7 @@ const example_config = {
//Host //Host
ServerName: "172.16.12.2", ServerName: "172.16.12.2",
//数据库名 //数据库名
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "hmes-h7", User: "hmes-h7",
Password: "Hmes-h7666", Password: "Hmes-h7666",
//是否信任服务器证书 //是否信任服务器证书
@ -43,7 +43,7 @@ const example_config = {
//目标数据库配置 sqlserver //目标数据库配置 sqlserver
DstDb: { DstDb: {
ServerName: "127.0.0.1", ServerName: "127.0.0.1",
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "sa", User: "sa",
Password: "0", Password: "0",
TrustServerCertificate: "True", TrustServerCertificate: "True",
@ -81,7 +81,7 @@ const config = {
//Host //Host
ServerName: "172.16.12.2", ServerName: "172.16.12.2",
//数据库名 //数据库名
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "hmes-h7", User: "hmes-h7",
Password: "Hmes-h7666", Password: "Hmes-h7666",
//是否信任服务器证书 //是否信任服务器证书
@ -97,7 +97,7 @@ const config = {
//目标数据库配置 sqlserver //目标数据库配置 sqlserver
DstDb: { DstDb: {
ServerName: "127.0.0.1", ServerName: "127.0.0.1",
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "sa", User: "sa",
Password: "0", Password: "0",
TrustServerCertificate: "True", TrustServerCertificate: "True",

View file

@ -28,7 +28,7 @@ config = {
RemoteRootPath: "D:/FileSyncTest/dst", RemoteRootPath: "D:/FileSyncTest/dst",
SrcDb: { SrcDb: {
ServerName: "172.16.12.2", ServerName: "172.16.12.2",
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "hmes-h7", User: "hmes-h7",
Password: "Hmes-h7666", Password: "Hmes-h7666",
TrustServerCertificate: "True", TrustServerCertificate: "True",
@ -41,7 +41,7 @@ config = {
}, },
DstDb: { DstDb: {
ServerName: "127.0.0.1", ServerName: "127.0.0.1",
DatebaseName: "HMES_H7_HNFYMF", DatabaseName: "HMES_H7_HNFYMF",
User: "sa", User: "sa",
Password: "0", Password: "0",
TrustServerCertificate: "True", TrustServerCertificate: "True",