|
@@ -18,15 +18,17 @@ namespace OASystem.Domain.ViewModels.Statistics
|
|
|
public int Id { get; set; }
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
- [Navigate(NavigateType.OneToOne, nameof(Id))]//一对一 SchoolId是StudentA类里面的
|
|
|
+ [Navigate(NavigateType.OneToMany, nameof(DailypaymentSubTypeView.STid))]
|
|
|
public List<DailypaymentSubTypeView> SubData { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
[SqlSugar.SugarTable("Sys_SetData")]
|
|
|
public class DailypaymentSubTypeView
|
|
|
- {
|
|
|
- public int Id { get; set; }
|
|
|
+ {
|
|
|
+
|
|
|
+ [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
+ public int Id { get; set; }
|
|
|
public int STid { get; set; }
|
|
|
public string Name { get; set; }
|
|
|
}
|