This commit is contained in:
Vitaliy
2017-01-09 13:25:52 +03:00
parent a9f4f0f297
commit 6ead62af6e
98 changed files with 12058 additions and 72 deletions

View 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); } }
}
}