Fixed all relationship and write errors in all entities
This commit is contained in:
@@ -5,14 +5,11 @@ namespace PyroFetes.Models;
|
||||
public class Customer
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required] public string? Note { get; set; }
|
||||
[Required, MaxLength(200)] public string? Note { get; set; }
|
||||
|
||||
//Relations
|
||||
public int CustomerTypeId { get; set; }
|
||||
[Required] public int CustomerTypeId { get; set; }
|
||||
public CustomerType? CustomerType { get; set; }
|
||||
|
||||
public int ContactId { get; set; }
|
||||
public Contact? Contact { get; set; }
|
||||
|
||||
public List<CustomerContact>? CustomerContacts { get; set; }
|
||||
public List<Contact>? Contacts { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user