Update packages and simplify entity definitions
- Updated package references to newer versions for `DigitalData.Auth.Client`, `DigitalData.Core.API`, `DigitalData.Core.Abstractions`, `DigitalData.Core.Application`, and `DigitalData.EmailProfilerDispatcher.Abstraction`. - Changed `UserManager.Domain` package version from `3.0.2` to `3.1.0` and updated assembly and file versions. - Removed `IUnique<int>` interface implementation from `BaseEntity`, `ClientUser`, `Module`, and `ModuleOfUser`. - Added data annotations to the `User` class for various properties that were previously commented out. - Updated `Microsoft.EntityFrameworkCore` package references in the `Infrastructure` project for `net7.0` and `net9.0`. - Modified solution configuration to change a project's build configuration from Debug to Release.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using DigitalData.Core.Abstractions;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
public class BaseEntity : IUnique<int>
|
||||
public class BaseEntity
|
||||
{
|
||||
[Column("GUID")]
|
||||
[Key]
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using DigitalData.Core.Abstractions;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
[Table("TBDD_CLIENT_USER", Schema = "dbo")]
|
||||
public class ClientUser : IUnique<int>
|
||||
public class ClientUser
|
||||
{
|
||||
[Column("GUID")]
|
||||
[Key]
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using DigitalData.Core.Abstractions;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
[Table("TBDD_MODULES", Schema = "dbo")]
|
||||
public class Module : IUnique<int>
|
||||
public class Module
|
||||
{
|
||||
[Column("GUID")]
|
||||
[Key]
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using DigitalData.Core.Abstractions;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
[Table("TBDD_USER_MODULES", Schema = "dbo")]
|
||||
public class ModuleOfUser : IUnique<int>
|
||||
public class ModuleOfUser
|
||||
{
|
||||
[Column("GUID")]
|
||||
[Key]
|
||||
|
||||
@@ -2,76 +2,75 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
namespace DigitalData.UserManager.Domain.Entities;
|
||||
|
||||
[Table("TBDD_USER", Schema = "dbo")]
|
||||
public class User : BaseEntity
|
||||
{
|
||||
[Table("TBDD_USER", Schema = "dbo")]
|
||||
public class User : BaseEntity
|
||||
{
|
||||
[Column("PRENAME")]
|
||||
[StringLength(50)]
|
||||
public string? Prename { get; set; }
|
||||
[Column("PRENAME")]
|
||||
[StringLength(50)]
|
||||
public string? Prename { get; set; }
|
||||
|
||||
[Column("NAME")]
|
||||
[StringLength(50)]
|
||||
public string? Name { get; set; }
|
||||
[Column("NAME")]
|
||||
[StringLength(50)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("USERNAME")]
|
||||
[StringLength(50)]
|
||||
public string Username { get; set; }
|
||||
[Required]
|
||||
[Column("USERNAME")]
|
||||
[StringLength(50)]
|
||||
public string Username { get; set; }
|
||||
|
||||
[Column("SHORTNAME")]
|
||||
[StringLength(30)]
|
||||
public string? Shortname { get; set; }
|
||||
[Column("SHORTNAME")]
|
||||
[StringLength(30)]
|
||||
public string? Shortname { get; set; }
|
||||
|
||||
[Column("EMAIL")]
|
||||
[StringLength(100)]
|
||||
public string? Email { get; set; }
|
||||
[Column("EMAIL")]
|
||||
[StringLength(100)]
|
||||
public string? Email { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("LANGUAGE")]
|
||||
[StringLength(5)]
|
||||
[DefaultValue("de-DE")]
|
||||
public string Language { get; set; }
|
||||
[Required]
|
||||
[Column("LANGUAGE")]
|
||||
[StringLength(5)]
|
||||
[DefaultValue("de-DE")]
|
||||
public string Language { get; set; }
|
||||
|
||||
[Column("COMMENT")]
|
||||
[StringLength(500)]
|
||||
public string? Comment { get; set; }
|
||||
[Column("COMMENT")]
|
||||
[StringLength(500)]
|
||||
public string? Comment { get; set; }
|
||||
|
||||
[Column("DELETED")]
|
||||
public bool Deleted { get; set; }
|
||||
[Column("DELETED")]
|
||||
public bool Deleted { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("DATE_FORMAT")]
|
||||
[StringLength(10)]
|
||||
[DefaultValue("dd.MM.yyyy")]
|
||||
public string DateFormat { get; set; }
|
||||
[Required]
|
||||
[Column("DATE_FORMAT")]
|
||||
[StringLength(10)]
|
||||
[DefaultValue("dd.MM.yyyy")]
|
||||
public string DateFormat { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("ACTIVE")]
|
||||
public bool Active { get; set; }
|
||||
[Required]
|
||||
[Column("ACTIVE")]
|
||||
public bool Active { get; set; }
|
||||
|
||||
#region IGNORED COLUMNS
|
||||
//[Required]
|
||||
//[Column("GENERAL_VIEWER")]
|
||||
//[StringLength(30)]
|
||||
//[DefaultValue("NONE")]
|
||||
//public string GeneralViewer { get; set; }
|
||||
#region IGNORED COLUMNS
|
||||
//[Required]
|
||||
//[Column("GENERAL_VIEWER")]
|
||||
//[StringLength(30)]
|
||||
//[DefaultValue("NONE")]
|
||||
//public string GeneralViewer { get; set; }
|
||||
|
||||
//[Required]
|
||||
//[Column("WAN_ENVIRONMENT")]
|
||||
//public bool WanEnvironment { get; set; }
|
||||
//[Required]
|
||||
//[Column("WAN_ENVIRONMENT")]
|
||||
//public bool WanEnvironment { get; set; }
|
||||
|
||||
//[Required]
|
||||
//[Column("USERID_FK_INT_ECM")]
|
||||
//public int UseridFkIntEcm { get; set; }
|
||||
//[Required]
|
||||
//[Column("USERID_FK_INT_ECM")]
|
||||
//public int UseridFkIntEcm { get; set; }
|
||||
|
||||
//[Column("DELETED_WHEN")]
|
||||
//public DateTime? DeletedWhen { get; set; }
|
||||
//[Column("DELETED_WHEN")]
|
||||
//public DateTime? DeletedWhen { get; set; }
|
||||
|
||||
//[Column("DELETED_WHO")]
|
||||
//[StringLength(50)]
|
||||
//public string? DeletedWho { get; set; }
|
||||
#endregion
|
||||
}
|
||||
//[Column("DELETED_WHO")]
|
||||
//[StringLength(50)]
|
||||
//public string? DeletedWho { get; set; }
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user