14 lines
388 B
C#
14 lines
388 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace PyroFetes.Models;
|
|
|
|
[PrimaryKey(nameof(ContactId), nameof(CustomerId))]
|
|
public class ContactCustomer
|
|
{
|
|
[Required] public int ContactId { get; set; }
|
|
[Required] public int CustomerId { get; set; }
|
|
|
|
public Contact? Contact { get; set; }
|
|
public Customer? Customer { get; set; }
|
|
} |