refactor: BaseEntity-Vererbung für alle Entitäten außer Module und ModuleOfUser
- BaseEntity-Vererbung auf alle Entitäten angewendet, außer für Module und ModuleOfUser.
This commit is contained in:
parent
36d763d5e5
commit
a2077c58ca
@ -12,7 +12,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
[StringLength(50)]
|
[StringLength(50)]
|
||||||
[DefaultValue("DEFAULT")]
|
|
||||||
[Column("ADDED_WHO")]
|
[Column("ADDED_WHO")]
|
||||||
public string? AddedWho { get; set; }
|
public string? AddedWho { get; set; }
|
||||||
|
|
||||||
|
|||||||
@ -5,13 +5,8 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
namespace DigitalData.UserManager.Domain.Entities
|
namespace DigitalData.UserManager.Domain.Entities
|
||||||
{
|
{
|
||||||
[Table("TBDD_GROUPS_USER", Schema = "dbo")]
|
[Table("TBDD_GROUPS_USER", Schema = "dbo")]
|
||||||
public class GroupOfUser
|
public class GroupOfUser : BaseEntity
|
||||||
{
|
{
|
||||||
[Column("GUID")]
|
|
||||||
[Key]
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
||||||
public int Id { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("USER_ID")]
|
[Column("USER_ID")]
|
||||||
public int UserId { get; set; }
|
public int UserId { get; set; }
|
||||||
@ -23,11 +18,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
[StringLength(200)]
|
[StringLength(200)]
|
||||||
public string? Comment { get; set; }
|
public string? Comment { get; set; }
|
||||||
|
|
||||||
[StringLength(50)]
|
|
||||||
[DefaultValue("DEFAULT")]
|
|
||||||
[Column("ADDED_WHO")]
|
|
||||||
public string AddedWho { get; set; } = "DEFAULT";
|
|
||||||
|
|
||||||
[StringLength(50)]
|
[StringLength(50)]
|
||||||
[Column("CHANGED_WHO")]
|
[Column("CHANGED_WHO")]
|
||||||
public string? ChangedWho { get; set; }
|
public string? ChangedWho { get; set; }
|
||||||
@ -37,13 +27,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
|
|
||||||
[ForeignKey("GroupId")]
|
[ForeignKey("GroupId")]
|
||||||
public virtual Group? Group { get; set; }
|
public virtual Group? Group { get; set; }
|
||||||
|
|
||||||
#region IGNORED COLUMN
|
|
||||||
//[DefaultValue("getdate()")]
|
|
||||||
//public DateTime? AddedWhen { get; set; }
|
|
||||||
|
|
||||||
//public DateTime? ChangedWhen { get; set; }
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,13 +5,8 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
namespace DigitalData.UserManager.Domain.Entities
|
namespace DigitalData.UserManager.Domain.Entities
|
||||||
{
|
{
|
||||||
[Table("TBDD_USER", Schema = "dbo")]
|
[Table("TBDD_USER", Schema = "dbo")]
|
||||||
public class User
|
public class User : BaseEntity
|
||||||
{
|
{
|
||||||
[Column("GUID")]
|
|
||||||
[Key]
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
||||||
public int Id { get; set; }
|
|
||||||
|
|
||||||
[Column("PRENAME")]
|
[Column("PRENAME")]
|
||||||
[StringLength(50)]
|
[StringLength(50)]
|
||||||
public string? Prename { get; set; }
|
public string? Prename { get; set; }
|
||||||
@ -52,16 +47,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
[DefaultValue("dd.MM.yyyy")]
|
[DefaultValue("dd.MM.yyyy")]
|
||||||
public string DateFormat { get; set; }
|
public string DateFormat { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
[Column("ADDED_WHO")]
|
|
||||||
[StringLength(50)]
|
|
||||||
[DefaultValue("DEFAULT")]
|
|
||||||
public string AddedWho { get; set; }
|
|
||||||
|
|
||||||
[Column("CHANGED_WHO")]
|
|
||||||
[StringLength(50)]
|
|
||||||
public string? ChangedWho { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[Column("ACTIVE")]
|
[Column("ACTIVE")]
|
||||||
public bool Active { get; set; }
|
public bool Active { get; set; }
|
||||||
@ -87,14 +72,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
//[Column("DELETED_WHO")]
|
//[Column("DELETED_WHO")]
|
||||||
//[StringLength(50)]
|
//[StringLength(50)]
|
||||||
//public string? DeletedWho { get; set; }
|
//public string? DeletedWho { get; set; }
|
||||||
|
|
||||||
//[Required]
|
|
||||||
//[Column("ADDED_WHEN")]
|
|
||||||
//[DefaultValue("getdate()")]
|
|
||||||
//public DateTime? AddedWhen { get; set; }
|
|
||||||
|
|
||||||
//[Column("CHANGED_WHEN")]
|
|
||||||
//public DateTime? ChangedWhen { get; set; }
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5,7 +5,7 @@ using System.ComponentModel;
|
|||||||
namespace DigitalData.UserManager.Domain.Entities
|
namespace DigitalData.UserManager.Domain.Entities
|
||||||
{
|
{
|
||||||
[Table("TBDD_USER_REPRESENTATION", Schema = "dbo")]
|
[Table("TBDD_USER_REPRESENTATION", Schema = "dbo")]
|
||||||
public class UserRep
|
public class UserRep : BaseEntity
|
||||||
{
|
{
|
||||||
[Column("GUID")]
|
[Column("GUID")]
|
||||||
[Key]
|
[Key]
|
||||||
@ -23,16 +23,6 @@ namespace DigitalData.UserManager.Domain.Entities
|
|||||||
[Column("RIGHT_GROUP")]
|
[Column("RIGHT_GROUP")]
|
||||||
public int RightGroupId { get; set; }
|
public int RightGroupId { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
[StringLength(50)]
|
|
||||||
[DefaultValue("DEFAULT")]
|
|
||||||
[Column("ADDED_WHO")]
|
|
||||||
public string AddedWho { get; set; }
|
|
||||||
|
|
||||||
[StringLength(50)]
|
|
||||||
[Column("CHANGED_WHO")]
|
|
||||||
public string? ChangedWho { get; set; }
|
|
||||||
|
|
||||||
[Column("REPR_USER")]
|
[Column("REPR_USER")]
|
||||||
public int? RepUserId { get; set; }
|
public int? RepUserId { get; set; }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user