forked from sanchezvem/PyroFetes
Fixed all relationship and write errors in all entities
This commit is contained in:
13
PyroFetes/Models/ServiceProvider.cs
Normal file
13
PyroFetes/Models/ServiceProvider.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class ServiceProvider
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required] public decimal Price { get; set; }
|
||||
|
||||
//Relations
|
||||
public int ProviderTypeId { get; set; }
|
||||
public ProviderType? ProviderType { get; set; }
|
||||
}
|
Reference in New Issue
Block a user