Update to latest packages and show examples
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using GerstITS.Data;
|
||||
|
||||
namespace GerstITS.Examples.Data.Entities;
|
||||
|
||||
public sealed class CustomerEntity : EntityBase<int>, IActivatable, IReadOnlyActivatable, ICreatable, IReadOnlyCreatable, IModifiable, IReadOnlyModifiable, IVersionable, IReadOnlyVersionable
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string EMail { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? Deactivated { get; set; }
|
||||
public string DeactivatedBy { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public DateTime? Modified { get; set; }
|
||||
public string ModifiedBy { get; set; }
|
||||
|
||||
public int Version { get; set; }
|
||||
|
||||
public ICollection<CustomerNoteEntity> Notes { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using GerstITS.Data;
|
||||
|
||||
namespace GerstITS.Examples.Data.Entities;
|
||||
|
||||
public sealed class CustomerNoteEntity : EntityBase<int>, ICreatable, IReadOnlyCreatable, IHistoricizable, IReadOnlyHistoricizable
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public int CustomerId { get; set; }
|
||||
public string Text { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public string HistorySet { get; set; }
|
||||
public DateTime ValidFrom { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user