marco.pms.api/Marco.Pms.Model/Directory/ContactBucketMapping.cs

19 lines
531 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace Marco.Pms.Model.Directory
{
public class ContactBucketMapping
{
public Guid Id { get; set; }
public Guid BucketId { get; set; }
[ValidateNever]
[ForeignKey("BucketId")]
public Bucket? Bucket { get; set; }
public Guid ContactId { get; set; }
[ValidateNever]
[ForeignKey("ContactId")]
public Contact? Contact { get; set; }
}
}