mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update demo
This commit is contained in:
parent
2cb2520b4e
commit
0826e12fca
@ -183,6 +183,7 @@ namespace OrmTest
|
|||||||
[SugarColumn(IsPrimaryKey = true)]
|
[SugarColumn(IsPrimaryKey = true)]
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
[SugarColumn(IsNullable =true)]
|
||||||
public int SchoolId { get; set; }
|
public int SchoolId { get; set; }
|
||||||
[Navigate(NavigateType.OneToOne, nameof(SchoolId))]
|
[Navigate(NavigateType.OneToOne, nameof(SchoolId))]
|
||||||
public SchoolA SchoolA { get; set; }
|
public SchoolA SchoolA { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user