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.
22 lines
562 B
22 lines
562 B
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Entities
|
|
{
|
|
/// <summary>
|
|
/// define a mathematical chapter or thematic
|
|
/// properties :
|
|
/// Id : identifier in the database
|
|
/// Name : name of the chapter
|
|
/// </summary>
|
|
[Table("Chapter")]
|
|
public class ChapterEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public string Name { get; set; } = null!;
|
|
}
|
|
}
|