42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
namespace AYA.SlnSynorModel.BD
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity.Spatial;
|
|
|
|
[Table("Rol")]
|
|
public partial class Rol
|
|
{
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
|
public Rol()
|
|
{
|
|
AsignacionRol = new HashSet<AsignacionRol>();
|
|
}
|
|
|
|
[Key]
|
|
public int id_rol { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string nombre { get; set; }
|
|
|
|
[StringLength(100)]
|
|
public string descripcion { get; set; }
|
|
|
|
public DateTime? fecha_creacion { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string usuario_creacion { get; set; }
|
|
|
|
public DateTime? fecha_modificacion { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string usuario_modificacion { get; set; }
|
|
|
|
public bool? estado { get; set; }
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
|
public virtual ICollection<AsignacionRol> AsignacionRol { get; set; }
|
|
}
|
|
}
|