NotMapped-Attribut zur AddedWhen-Eigenschaft hinzugefügt, damit MSSQL automatisch zuweisen kann.
This commit is contained in:
@@ -73,9 +73,10 @@ namespace DigitalData.EmailProfilerDispatcher.Domain.Entities
|
||||
|
||||
[Column("ADDED_WHEN")]
|
||||
[DefaultValue("getdate()")]
|
||||
[NotMapped]
|
||||
public DateTime? AddedWhen { get; set; }
|
||||
|
||||
[Column("CHANGED_WHO", TypeName = "varchar(50)")]
|
||||
[Column("CHANGED_WHO", TypeName = "varchar(50)")]
|
||||
[StringLength(50)]
|
||||
public string? ChangedWho { get; set; }
|
||||
|
||||
|
||||
@@ -29,8 +29,10 @@ namespace EmailProfilerDispatcher.Tests
|
||||
|
||||
var mailData1 = new MailData1();
|
||||
var mailData2 = new MailData2();
|
||||
Dictionary<string, string> placeholders = new();
|
||||
placeholders.Add(@"[NAME_PORTAL]", "DokumentenPortal");
|
||||
Dictionary<string, string> placeholders = new()
|
||||
{
|
||||
{ @"[NAME_PORTAL]", "DokumentenPortal" }
|
||||
};
|
||||
|
||||
var expectedOutput = @"Guten Tag Tom,<br />
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user