refactor(User): Aktualisierung des Namespace der User-Entität für Multi-Targeting
- Anpassung des Namespace und der Klammern der Klasse „User“, um sowohl .NET als auch .NET Framework zu unterstützen. - Beibehaltung bestehender Eigenschaften und Anmerkungen, einschließlich der Behandlung von Nullwerten und erforderlichen Angaben pro Ziel. - Gewährleistet die korrekte Kompilierung unter den Bedingungen „#if NET“ und „#if NETFRAMEWORK“.
This commit is contained in:
parent
8f5015f7d7
commit
f8dcd5ba41
@ -6,122 +6,130 @@ using System;
|
||||
#endif
|
||||
|
||||
namespace DigitalData.UserManager.Domain.Entities
|
||||
{
|
||||
[Table("TBDD_USER", Schema = "dbo")]
|
||||
public partial class User : BaseEntity
|
||||
#if NET
|
||||
;
|
||||
#elif NETFRAMEWORK
|
||||
{
|
||||
[Column("PRENAME")]
|
||||
[StringLength(50)]
|
||||
public string
|
||||
#if NET
|
||||
?
|
||||
#endif
|
||||
Prename { get; set; }
|
||||
|
||||
[Column("NAME")]
|
||||
[StringLength(50)]
|
||||
public string
|
||||
[Table("TBDD_USER", Schema = "dbo")]
|
||||
public partial class User : BaseEntity
|
||||
{
|
||||
[Column("PRENAME")]
|
||||
[StringLength(50)]
|
||||
public string
|
||||
#if NET
|
||||
?
|
||||
?
|
||||
#endif
|
||||
Name { get; set; }
|
||||
Prename { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("USERNAME")]
|
||||
[StringLength(50)]
|
||||
public
|
||||
[Column("NAME")]
|
||||
[StringLength(50)]
|
||||
public string
|
||||
#if NET
|
||||
required
|
||||
?
|
||||
#endif
|
||||
string Username { get; set; }
|
||||
Name { get; set; }
|
||||
|
||||
[Column("SHORTNAME")]
|
||||
[StringLength(30)]
|
||||
public string
|
||||
[Required]
|
||||
[Column("USERNAME")]
|
||||
[StringLength(50)]
|
||||
public
|
||||
#if NET
|
||||
?
|
||||
required
|
||||
#endif
|
||||
Shortname
|
||||
{ get; set; }
|
||||
string Username { get; set; }
|
||||
|
||||
[Column("EMAIL")]
|
||||
[StringLength(100)]
|
||||
public string
|
||||
[Column("SHORTNAME")]
|
||||
[StringLength(30)]
|
||||
public string
|
||||
#if NET
|
||||
?
|
||||
?
|
||||
#endif
|
||||
Email { get; set; }
|
||||
Shortname
|
||||
{ get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("LANGUAGE")]
|
||||
[StringLength(5)]
|
||||
[DefaultValue("de-DE")]
|
||||
public string
|
||||
[Column("EMAIL")]
|
||||
[StringLength(100)]
|
||||
public string
|
||||
#if NET
|
||||
?
|
||||
?
|
||||
#endif
|
||||
Language { get; set; }
|
||||
Email { get; set; }
|
||||
|
||||
[Column("COMMENT")]
|
||||
[StringLength(500)]
|
||||
public string
|
||||
[Required]
|
||||
[Column("LANGUAGE")]
|
||||
[StringLength(5)]
|
||||
[DefaultValue("de-DE")]
|
||||
public string
|
||||
#if NET
|
||||
?
|
||||
?
|
||||
#endif
|
||||
Comment { get; set; }
|
||||
Language { get; set; }
|
||||
|
||||
[Column("DELETED")]
|
||||
public bool Deleted { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("DATE_FORMAT")]
|
||||
[StringLength(10)]
|
||||
[DefaultValue("dd.MM.yyyy")]
|
||||
public
|
||||
[Column("COMMENT")]
|
||||
[StringLength(500)]
|
||||
public string
|
||||
#if NET
|
||||
required
|
||||
?
|
||||
#endif
|
||||
string DateFormat { get; set; }
|
||||
Comment { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("ACTIVE")]
|
||||
public bool Active { get; set; }
|
||||
[Column("DELETED")]
|
||||
public bool Deleted { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("GENERAL_VIEWER")]
|
||||
[StringLength(30)]
|
||||
[DefaultValue("NONE")]
|
||||
public
|
||||
[Required]
|
||||
[Column("DATE_FORMAT")]
|
||||
[StringLength(10)]
|
||||
[DefaultValue("dd.MM.yyyy")]
|
||||
public
|
||||
#if NET
|
||||
required
|
||||
required
|
||||
#endif
|
||||
string GeneralViewer { get; set; }
|
||||
string DateFormat { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("WAN_ENVIRONMENT")]
|
||||
public bool WanEnvironment { get; set; }
|
||||
[Required]
|
||||
[Column("ACTIVE")]
|
||||
public bool Active { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("USERID_FK_INT_ECM")]
|
||||
public int UserIdFkIntEcm { get; set; }
|
||||
|
||||
[Column("DELETED_WHEN")]
|
||||
public DateTime
|
||||
[Required]
|
||||
[Column("GENERAL_VIEWER")]
|
||||
[StringLength(30)]
|
||||
[DefaultValue("NONE")]
|
||||
public
|
||||
#if NET
|
||||
?
|
||||
required
|
||||
#endif
|
||||
DeletedWhen { get; set; }
|
||||
string GeneralViewer { get; set; }
|
||||
|
||||
[Column("DELETED_WHO")]
|
||||
[StringLength(50)]
|
||||
public
|
||||
[Required]
|
||||
[Column("WAN_ENVIRONMENT")]
|
||||
public bool WanEnvironment { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("USERID_FK_INT_ECM")]
|
||||
public int UserIdFkIntEcm { get; set; }
|
||||
|
||||
[Column("DELETED_WHEN")]
|
||||
public DateTime
|
||||
#if NET
|
||||
required
|
||||
?
|
||||
#endif
|
||||
string
|
||||
DeletedWhen { get; set; }
|
||||
|
||||
[Column("DELETED_WHO")]
|
||||
[StringLength(50)]
|
||||
public
|
||||
#if NET
|
||||
?
|
||||
# endif
|
||||
DeletedWho { get; set; }
|
||||
required
|
||||
#endif
|
||||
string
|
||||
#if NET
|
||||
?
|
||||
#endif
|
||||
DeletedWho { get; set; }
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user