Increase email address length in data models
Updated `ReceiverMail` and `EmailAddress` columns to support `nvarchar(250)` for longer email addresses. Retained `[NotMapped]` attribute for `Envelope` in `EnvelopeReceiverReadOnly.cs` with a note for future standardization of `EnvelopeId` data type.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[NotMapped]
|
||||
public Envelope Envelope { get; set; }
|
||||
|
||||
[Column("RECEIVER_MAIL")]
|
||||
[Column("RECEIVER_MAIL", TypeName = "nvarchar(250)")]
|
||||
[Required]
|
||||
[StringLength(250)]
|
||||
[TemplatePlaceholder("NAME_RECEIVER")]
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, EmailAddress]
|
||||
[Column("EMAIL_ADDRESS", TypeName = "nvarchar(128)")]
|
||||
[Column("EMAIL_ADDRESS", TypeName = "nvarchar(250)")]
|
||||
[StringLength(250)]
|
||||
public string EmailAddress { get; set; }
|
||||
|
||||
[Required]
|
||||
|
||||
Reference in New Issue
Block a user