- 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.
30 lines
903 B
C#
30 lines
903 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DigitalData.UserManager.Domain.Entities
|
|
{
|
|
public class BaseEntity
|
|
{
|
|
[Column("GUID")]
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[Column("ADDED_WHO")]
|
|
public string? AddedWho { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[Column("CHANGED_WHO")]
|
|
public string? ChangedWho { get; set; }
|
|
|
|
//TODO: assign it to default value in create dto, not here!
|
|
[Column("ADDED_WHEN", TypeName = "datetime")]
|
|
[DefaultValue("GETDATE()")]
|
|
public DateTime AddedWhen { get; set; } = DateTime.Now;
|
|
|
|
[Column("CHANGED_WHEN", TypeName = "datetime")]
|
|
public DateTime? ChangedWhen { get; set; }
|
|
}
|
|
} |