Developer 02 dfe848100a feat: Entfernen der EcmFkId-Eigenschaft aus GroupCreateDto und dem Formular zur Gruppenerstellung
- `EcmFkId`-Eigenschaft aus dem `GroupCreateDto` im Backend entfernt.
- Anpassungen im Frontend vorgenommen, um das `EcmFkId`-Feld im Formular zur Gruppenerstellung zu entfernen.
- `EcmFkId` wird im Entity standardmäßig auf `-1` gesetzt.
2024-09-09 13:23:45 +02:00

35 lines
1018 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DigitalData.UserManager.Domain.Entities
{
[Table("TBDD_GROUPS", Schema = "dbo")]
public class Group : BaseEntity
{
[StringLength(50)]
public string? Name { get; set; }
[Required]
[DefaultValue(false)]
[Column("AD_SYNC")]
public bool AdSync { get; set; }
[Required]
[DefaultValue(false)]
public bool Internal { get; set; }
[Required]
[DefaultValue(true)]
public bool Active { get; set; }
[StringLength(200)]
public string? Comment { get; set; }
// TODO: this column should be assigned by triggers. despite this it is not null and this is problem for creation. talk with others
[Required]
[Column("ECM_FK_ID")]
[DefaultValue(-1)]
public int EcmFkId { get; init; } = -1;
}
}