feat: Config-Entität erstellen
This commit is contained in:
parent
039234e88e
commit
a740289e05
35
WorkFlow.Domain/Entities/Config.cs
Normal file
35
WorkFlow.Domain/Entities/Config.cs
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
|
namespace WorkFlow.Domain.Entities
|
||||||
|
{
|
||||||
|
[Table("TBMWF_CONFIG", Schema = "dbo")]
|
||||||
|
public class Config
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[Column("GUID")]
|
||||||
|
public int Guid { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CONF_TITLE", TypeName = "varchar(100)")]
|
||||||
|
public required string ConfTitle { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("CONF_STRING", TypeName = "varchar(900)")]
|
||||||
|
public required string ConfString { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public required string AddedWho { get; init; }
|
||||||
|
|
||||||
|
[Required]
|
||||||
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
||||||
|
public required DateTime AddedWhen { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHO", TypeName = "varchar(30)")]
|
||||||
|
public string? ChangedWho { get; init; }
|
||||||
|
|
||||||
|
[Column("CHANGED_WHEN", TypeName = "datetime")]
|
||||||
|
public DateTime? ChangedWhen { get; init; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user