introduced a ModelBase to move the IAuditable properties to a base class
This commit is contained in:
parent
e27a625069
commit
1daa9575db
12
Oqtane.Shared/Models/ModelBase.cs
Normal file
12
Oqtane.Shared/Models/ModelBase.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class ModelBase : IAuditable
|
||||
{
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime CreatedOn { get; set; }
|
||||
public string ModifiedBy { get; set; }
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ namespace Oqtane.Models
|
|||
/// Describes a Site in a <see cref="Tenant"/> in an Oqtane installation.
|
||||
/// Sites can have multiple <see cref="Alias"/>es.
|
||||
/// </summary>
|
||||
public class Site : IAuditable, IDeletable
|
||||
public class Site : ModelBase, IDeletable
|
||||
{
|
||||
/// <summary>
|
||||
/// Internal ID, not to be confused with the <see cref="Alias.AliasId"/>
|
||||
|
@ -100,19 +100,6 @@ namespace Oqtane.Models
|
|||
[NotMapped]
|
||||
public List<Language> Languages { get; set; }
|
||||
|
||||
#region IAuditable Properties
|
||||
|
||||
/// <inheritdoc/>
|
||||
public string CreatedBy { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public DateTime CreatedOn { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public string ModifiedBy { get; set; }
|
||||
/// <inheritdoc/>
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Extended IAuditable Properties, may be moved to an Interface some day so not documented yet
|
||||
|
||||
public string DeletedBy { get; set; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user