mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 10:21:16 +00:00
20 lines
636 B
C#
20 lines
636 B
C#
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); } }
|
|
}
|
|
}
|