You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/EFCore.Jet.IntegrationTests/Model01/Student.cs

27 lines
642 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace EntityFrameworkCore.Jet.IntegrationTests.Model01
{
public class Student
{
public int StudentId { get; set; }
[Required]
[MaxLength(50)]
// Index are supported only with fluent API
/*[Index]*/
public string StudentName { get; set; }
public string Notes { get; set; }
public virtual Standard Standard { get; set; }
public override string ToString()
{
return string.Format("{2}: {0} - {1}", StudentId, StudentName, base.ToString());
}
}
}