forked from msallin/SQLiteCodeFirst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHistory.cs
More file actions
56 lines (51 loc) · 1.67 KB
/
Copy pathHistory.cs
File metadata and controls
56 lines (51 loc) · 1.67 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SQLite.CodeFirst
{
/// <summary>
/// Represents the database table "history" which is used to store the necessary information
/// to detect if the model has changed.
/// </summary>
[Table(nameof(History) + "_" + TableNamePostfix)]
public class History : IHistory
{
/// <summary>
/// The postfix which is appended to the history table name
/// to ensure that this table name is unique.
/// </summary>
public const string TableNamePostfix = "82c009b41631-48579635f1ff64eb62d9";
/// <summary>
/// Gets or sets the identifier of the record.
/// <remarks>Is automatilcally generated by the database.</remarks>
/// </summary>
/// <value>
/// The identifier.
/// </value>
[Key]
public int Id { get; set; }
/// <summary>
/// Gets or sets the hash which represents the current database structure/state.
/// </summary>
/// <value>
/// The hash.
/// </value>
[Required]
public string Hash { get; set; }
/// <summary>
/// Gets or sets the key of the DbContext to which this record belongs.
/// </summary>
/// <value>
/// The context key.
/// </value>
public string Context { get; set; }
/// <summary>
/// Gets or sets the create date of the record.
/// </summary>
/// <value>
/// The create date.
/// </value>
[Required]
public DateTime CreateDate { get; set; }
}
}