contact updated
This commit is contained in:
14
PyroFetes/Models/ContactCustomer.cs
Normal file
14
PyroFetes/Models/ContactCustomer.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user