Update demo

This commit is contained in:
sunkaixuan 2022-04-21 18:19:02 +08:00
parent 2cb2520b4e
commit 0826e12fca

View File

@ -183,6 +183,7 @@ namespace OrmTest
[SugarColumn(IsPrimaryKey = true)]
public int StudentId { get; set; }
public string Name { get; set; }
[SugarColumn(IsNullable =true)]
public int SchoolId { get; set; }
[Navigate(NavigateType.OneToOne, nameof(SchoolId))]
public SchoolA SchoolA { get; set; }