Skip to content

Commit ee65c87

Browse files
author
maps2002
committed
Allow EndDateTime to be null.
1 parent 5e27a31 commit ee65c87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DatabaseModel/CSPDatabaseModelEntities.edmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ warning 6002: The table/view 'Create.CSP.Reporting.dbo.Log' does not have a prim
505505
</Key>
506506
<Property Name="Id" Type="Guid" Nullable="false" />
507507
<Property Name="StartDateTime" Type="DateTime" Nullable="false" Precision="3" />
508-
<Property Name="EndDateTime" Type="DateTime" Precision="3" />
508+
<Property Name="EndDateTime" Type="DateTime" Precision="3" Nullable="true" />
509509
<Property Name="Status" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
510510
<NavigationProperty Name="ActivationReports" Relationship="Self.FK_ActivationReport_CorrelationIds" FromRole="CorrelationIds" ToRole="ActivationReport" />
511511
<NavigationProperty Name="Customers_History" Relationship="Self.FK_Customers_History_CorrelationIds" FromRole="CorrelationIds" ToRole="Customers_History" />

DatabaseModel/Managers/CorrelationIdsManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public Task<CorrelationId> AddNewRunAsync()
3434
{
3535
Id = Guid.NewGuid(),
3636
StartDateTime = DateTime.UtcNow,
37-
Status = "RUNNING"
37+
Status = "RUNNING",
38+
EndDateTime = null
3839
});
3940
}
4041

0 commit comments

Comments
 (0)