30 lines
822 B
C#
30 lines
822 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Web;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Weee.Models.Paramemter
|
|
{
|
|
public class SimaproParameterType : MultiLanguage
|
|
{
|
|
public SimaproParameterType()
|
|
{
|
|
Parameters = new HashSet<SimaproParameter>();
|
|
}
|
|
|
|
public int ID { get; set; }
|
|
|
|
[Required]
|
|
public int CategoryID { get; set; }
|
|
[ForeignKey("CategoryID")]
|
|
[JsonIgnore][IgnoreDataMember]
|
|
public virtual SimaproParameterCategory Category { get; set; }
|
|
|
|
[InverseProperty("Type")]
|
|
public virtual ICollection<SimaproParameter> Parameters { get; set; }
|
|
}
|
|
} |