aboutsummaryrefslogtreecommitdiff
path: root/VNLib.Plugins.Extensions.Data/IDbModel.cs
blob: fa053072afc57d26f533cc05a720e997d8f6a0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;

namespace VNLib.Plugins.Extensions.Data
{
    /// <summary>
    /// Represents a basic data model for an EFCore entity
    /// for support in data-stores
    /// </summary>
    public interface IDbModel
    {
        /// <summary>
        /// A unique id for the entity
        /// </summary>
        string Id { get; set; }
        /// <summary>
        /// The <see cref="DateTime"/> the entity was created in the store
        /// </summary>
        DateTime Created { get; set; }
        /// <summary>
        /// The <see cref="DateTime"/> the entity was last modified in the store
        /// </summary>
        DateTime LastModified { get; set; }
        /// <summary>
        /// Entity concurrency token
        /// </summary>
        byte[]? Version { get; set; }
    }
}