Project4 Adding entities
This commit is contained in:
13
PyroFetes/Models/CustomerContact.cs
Normal file
13
PyroFetes/Models/CustomerContact.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
[PrimaryKey(nameof(ContactId), nameof(CustomerId))]
|
||||
public class CustomerContact
|
||||
{
|
||||
public int CustomerId { get; set; }
|
||||
public Customer? Customer { get; set; }
|
||||
public int ContactId { get; set; }
|
||||
public Contact? Contact { get; set; }
|
||||
}
|
Reference in New Issue
Block a user