Project4 Adding entities
This commit is contained in:
14
PyroFetes/Models/Provider.cs
Normal file
14
PyroFetes/Models/Provider.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class Provider
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required] public decimal Price { get; set; }
|
||||
|
||||
//Relations
|
||||
|
||||
public int ProviderID { get; set; }
|
||||
public ProviderType? ProviderType { get; set; }
|
||||
}
|
Reference in New Issue
Block a user