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)
33 lines
936 B
C#
33 lines
936 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Department
|
|
{
|
|
public int DepartmentID { get; set; }
|
|
|
|
[StringLength(50, MinimumLength = 3)]
|
|
public string Name { get; set; }
|
|
|
|
[DataType(DataType.Currency)]
|
|
[Column(TypeName = "money")]
|
|
public decimal Budget { get; set; }
|
|
|
|
[DataType(DataType.Date)]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[Display(Name = "Start Date")]
|
|
public DateTime StartDate { get; set; }
|
|
|
|
public int? InstructorID { get; set; }
|
|
|
|
[Timestamp]
|
|
public byte[] RowVersion { get; set; }
|
|
|
|
public virtual Instructor Administrator { get; set; }
|
|
public virtual ICollection<Course> Courses { get; set; }
|
|
}
|
|
}
|