- 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.
34 lines
924 B
C#
34 lines
924 B
C#
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
|
|
{
|
|
[Column("GUID")]
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[Column("USER_ID")]
|
|
public int UserId { get; init; }
|
|
|
|
[Required]
|
|
[Column("CLIENT_ID")]
|
|
public int ClientId { get; init; }
|
|
|
|
[Column("COMMENT")]
|
|
public string? Comment { get; init; }
|
|
|
|
[StringLength(50)]
|
|
[Column("ADDED_WHO")]
|
|
public string? AddedWho { get; set; }
|
|
|
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
|
[DefaultValue("GETDATE()")]
|
|
public DateTime AddedWhen { get; set; } = DateTime.Now;
|
|
}
|
|
} |