Fix MudBlazor analyzer issues and target x64 for HANA client
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace TrafagSalesExporter.Models;
|
||||
|
||||
public class FieldTransformationRule
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string SourceSystem { get; set; } = "SAP";
|
||||
|
||||
[Required]
|
||||
public string SourceField { get; set; } = nameof(SalesRecord.Material);
|
||||
|
||||
[Required]
|
||||
public string TargetField { get; set; } = nameof(SalesRecord.Material);
|
||||
|
||||
[Required]
|
||||
public string TransformationType { get; set; } = "Copy";
|
||||
|
||||
public string Argument { get; set; } = string.Empty;
|
||||
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
@@ -62,4 +62,23 @@ public class HanaServer
|
||||
|
||||
return string.Join(";", parts);
|
||||
}
|
||||
|
||||
public string GetConnectionStringPreview()
|
||||
{
|
||||
var pwdMasked = string.IsNullOrEmpty(Password) ? "" : "***";
|
||||
var copy = new HanaServer
|
||||
{
|
||||
Host = Host,
|
||||
Port = Port,
|
||||
Username = Username,
|
||||
Password = pwdMasked,
|
||||
DatabaseName = DatabaseName,
|
||||
UseSsl = UseSsl,
|
||||
ValidateCertificate = ValidateCertificate,
|
||||
AdditionalParams = AdditionalParams
|
||||
};
|
||||
|
||||
return copy.BuildConnectionString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,5 +21,8 @@ public class Site
|
||||
[Required]
|
||||
public string Land { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string SourceSystem { get; set; } = "SAP";
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user