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