mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
e4670b33a1
* Add code testing agent agents + tests PoC * Remove AssertionEvaluator.cs change (moved to dev/jankrivanek/agents-evals)
21 lines
711 B
C#
21 lines
711 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Student : Person
|
|
{
|
|
[Required]
|
|
[DataType(DataType.Date)]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[Display(Name = "Enrollment Date")]
|
|
[Column(TypeName = "datetime2")]
|
|
[Range(typeof(DateTime), "1/1/1753", "12/31/9999", ErrorMessage = "Enrollment date must be between 1753 and 9999")]
|
|
public DateTime EnrollmentDate { get; set; }
|
|
|
|
public virtual ICollection<Enrollment> Enrollments { get; set; }
|
|
}
|
|
}
|