Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed May 10, 2024
1 parent 9cdd7ad commit a8a9f79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class AuditEntry
public string EntityId { get; set; }
public string EntityType { get; set; }

public AuditInfo Info { get; set; }
public AuditInfo? Info { get; set; }
public DbOperation Operation { get; set; }
public DateTimeOffset Timestamp { get; set; }
public Dictionary<string, object> ChangeSet { get; set; } // TODO: from current main record
Expand Down
3 changes: 1 addition & 2 deletions src/Shiny.Extensions.EntityFramework/Auditing/IAuditable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ public interface IAuditable
[Owned]
public class AuditInfo
{
public int? UserId { get; set; }
public string? Tenant { get; set; }
public string? UserIdentifier { get; set; }
public string? Url { get; set; }
public string? IpAddress { get; set; }
public DateTimeOffset DateCreated { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/Shiny.Extensions.WebHosting/RegistrationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public static WebApplicationBuilder AddInfrastructureForAppDomain(this WebApplic

public static WebApplicationBuilder AddInfrastructure(this WebApplicationBuilder builder, params Assembly[] assemblies)
{
if (assemblies.Length == 0)
throw new InvalidOperationException("No assemblies passed to scan");

foreach (var assembly in assemblies)
{
var moduleTypes = assembly
Expand Down

0 comments on commit a8a9f79

Please sign in to comment.