You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
2 years ago
|
namespace Warehouse.Models.mesMysqlModel
|
||
|
{
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using System.Data.Entity.Spatial;
|
||
|
|
||
|
[Table("js_mes.roles")]
|
||
|
public partial class role
|
||
|
{
|
||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||
|
public role()
|
||
|
{
|
||
|
rolepermissions = new HashSet<rolepermission>();
|
||
|
userroles = new HashSet<userrole>();
|
||
|
}
|
||
|
|
||
|
public int RoleId { get; set; }
|
||
|
|
||
|
[Required]
|
||
|
[StringLength(100)]
|
||
|
public string RoleName { get; set; }
|
||
|
|
||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||
|
public virtual ICollection<rolepermission> rolepermissions { get; set; }
|
||
|
|
||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||
|
public virtual ICollection<userrole> userroles { get; set; }
|
||
|
}
|
||
|
}
|