Reporting: Add UserName
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Interfaces;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace SZUAbsolventenverein.Module.AdminModules.Models
|
||||
{
|
||||
[Table("SZUAbsolventenvereinAdminModules")]
|
||||
public class AdminModules : IAuditable
|
||||
public class AdminModules : IAuditable, IReportable
|
||||
{
|
||||
[Key]
|
||||
public int AdminModulesId { get; set; }
|
||||
@@ -18,5 +19,13 @@ namespace SZUAbsolventenverein.Module.AdminModules.Models
|
||||
public DateTime CreatedOn { get; set; }
|
||||
public string ModifiedBy { get; set; }
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
[NotMapped] public string ModuleName => "";
|
||||
|
||||
[NotMapped] public int ModuleID => ModuleId;
|
||||
|
||||
[NotMapped] public int EntityID => AdminModulesId;
|
||||
|
||||
[NotMapped] public string UserName => CreatedBy;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ public class Reporting : IAuditable
|
||||
public int ReportingID { get; set; }
|
||||
public int ModuleId { get; set; }
|
||||
public int EntityId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string Note { get; set; }
|
||||
public string Reason { get; set; }
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Interfaces" Version="0.0.0-11" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user