相关疑难解决方法(0)

二进制运算符Equal未在类型Nullable <Int32>和Int32之间定义

我有以下型号:

public class DeviceConfigurationModel
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    [Display(Name = "Device Configuration Id")]
    public int DeviceConfigurationId { get; set; }

    [Required]
    [Display(Name = "Device Profile Name")]
    [StringLength(50)]
    public string ProfileName { get; set; }

    [StringLength(50)]
    public string SERV { get; set; }

    [StringLength(50)]
    public string IPAD { get; set; }

    public Nullable<int> PORT { get; set; }

    [Required]
    [Display(Name = "Is Active")]
    public bool IsActive { get; set; }

    [Required]
    [Display(Name = "Date Created")]
    public DateTime DateCreated { get; set; } …
Run Code Online (Sandbox Code Playgroud)

entity-framework model asp.net-mvc-4

11
推荐指数
1
解决办法
7863
查看次数

标签 统计

asp.net-mvc-4 ×1

entity-framework ×1

model ×1