mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
15 lines
261 B
C#
15 lines
261 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
namespace Packt.Shared;
|
|||
|
|
|
|||
|
|
public class Course
|
|||
|
|
{
|
|||
|
|
public int CourseId { get; set; }
|
|||
|
|
|
|||
|
|
[Required]
|
|||
|
|
[StringLength(60)]
|
|||
|
|
public string? Title { get; set; }
|
|||
|
|
|
|||
|
|
public ICollection<Student>? Students { get; set; }
|
|||
|
|
}
|