22 lines
		
	
	
		
			660 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			660 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.ComponentModel;
 | 
						|
using System.ComponentModel.DataAnnotations.Schema;
 | 
						|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
 | 
						|
 | 
						|
namespace Marco.Pms.Model.Directory
 | 
						|
{
 | 
						|
    public class ContactEmail
 | 
						|
    {
 | 
						|
        public Guid Id { get; set; }
 | 
						|
        public string Label { get; set; } = string.Empty;
 | 
						|
        public string EmailAddress { get; set; } = string.Empty;
 | 
						|
        [DisplayName("ContactId")]
 | 
						|
        public Guid ContactId { get; set; }
 | 
						|
        [ValidateNever]
 | 
						|
        [ForeignKey(nameof(ContactId))]
 | 
						|
        public Contact? Contact { get; set; }
 | 
						|
        public bool IsPrimary { get; set; }
 | 
						|
        public Guid TenantId { get; set; }
 | 
						|
 | 
						|
    }
 | 
						|
}
 |