16 lines
		
	
	
		
			435 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			435 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.ComponentModel.DataAnnotations;
 | 
						|
using System.ComponentModel.DataAnnotations.Schema;
 | 
						|
 | 
						|
namespace Elecciones.Database.Entities;
 | 
						|
 | 
						|
public class CategoriaElectoral
 | 
						|
{
 | 
						|
    [Key]
 | 
						|
    [DatabaseGenerated(DatabaseGeneratedOption.None)] // La API nos da el ID, no la BD.
 | 
						|
    public int Id { get; set; } // Corresponde a 'categoriald'
 | 
						|
 | 
						|
    [Required]
 | 
						|
    public string Nombre { get; set; } = null!;
 | 
						|
 | 
						|
    public int Orden { get; set; }
 | 
						|
} |