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)
30 lines
903 B
C#
30 lines
903 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Course
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
[Display(Name = "Number")]
|
|
public int CourseID { get; set; }
|
|
|
|
[StringLength(50, MinimumLength = 3)]
|
|
public string Title { get; set; }
|
|
|
|
[Range(0, 5)]
|
|
public int Credits { get; set; }
|
|
|
|
public int DepartmentID { get; set; }
|
|
|
|
[Display(Name = "Teaching Material Image")]
|
|
[StringLength(255)]
|
|
public string TeachingMaterialImagePath { get; set; }
|
|
|
|
public virtual Department Department { get; set; }
|
|
public virtual ICollection<Enrollment> Enrollments { get; set; }
|
|
public virtual ICollection<CourseAssignment> CourseAssignments { get; set; }
|
|
}
|
|
}
|