mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-23 11:11:16 +00:00
Initial
This commit is contained in:
22
AppleJobs.Data/Models/ModelsJobs/ModelJobPriceTemplate.cs
Normal file
22
AppleJobs.Data/Models/ModelsJobs/ModelJobPriceTemplate.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AppleJobs.Data.Models.ModelsJobs
|
||||
{
|
||||
public class ModelJobPriceTemplate
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public double? Price { get; set; }
|
||||
public bool IsPriceFrom { get; set; }
|
||||
public int ModelJobs_Id { get; set; }
|
||||
public int Customers_Id { get; set; }
|
||||
|
||||
[ForeignKey(nameof(Customers_Id))]
|
||||
public virtual Customer Customer { get; set; }
|
||||
[ForeignKey(nameof(ModelJobs_Id))]
|
||||
public virtual ModelJob ModelJob { get; set; }
|
||||
|
||||
public string FilterString { get { return string.Format("{0},{1}", Price, ModelJob?.FilterString); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user