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)
22 lines
779 B
C#
22 lines
779 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Instructor : Person
|
|
{
|
|
[Required]
|
|
[DataType(DataType.Date)]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[Display(Name = "Hire Date")]
|
|
[Column(TypeName = "datetime2")]
|
|
[Range(typeof(DateTime), "1/1/1753", "12/31/9999", ErrorMessage = "Hire date must be between 1753 and 9999")]
|
|
public DateTime HireDate { get; set; }
|
|
|
|
public virtual ICollection<CourseAssignment> CourseAssignments { get; set; }
|
|
public virtual OfficeAssignment OfficeAssignment { get; set; }
|
|
}
|
|
}
|