From 183f9b875c92df5cd9962346380072f07d39b457 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 14 Apr 2022 13:50:19 +0800 Subject: [PATCH] Update unit --- .../SqlSeverTest/UnitTest/UCustom012.cs | 14 +++++++------- .../SqlSeverTest/UnitTest/UCustom014.cs | 4 ++-- .../SqlSeverTest/UnitTest/UCustom015.cs | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs index dd4ebb69b..0b892692c 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom012.cs @@ -149,9 +149,9 @@ namespace OrmTest public int Id { get; set; } public string Name { get; set; } public int ParentId { get; set; } - [Navigat(NavigatType.OneToOne,nameof(ParentId))] + [Navigate(NavigateType.OneToOne,nameof(ParentId))] public Tree1 Parent { get; set; } - [Navigat(NavigatType.OneToMany,nameof(Tree1.ParentId))] + [Navigate(NavigateType.OneToMany,nameof(Tree1.ParentId))] public List Child { get; set; } } public class ABMapping1 @@ -166,7 +166,7 @@ namespace OrmTest [SugarColumn(IsPrimaryKey = true )] public int Id { get; set; } public string Name { get; set; } - [Navigat(typeof(ABMapping1),nameof(ABMapping1.AId),nameof(ABMapping1.BId))] + [Navigate(typeof(ABMapping1),nameof(ABMapping1.AId),nameof(ABMapping1.BId))] public List BList { get; set; } } public class B1 @@ -174,7 +174,7 @@ namespace OrmTest [SugarColumn(IsPrimaryKey = true )] public int Id { get; set; } public string Name { get; set; } - [Navigat(typeof(ABMapping1), nameof(ABMapping1.BId), nameof(ABMapping1.AId))] + [Navigate(typeof(ABMapping1), nameof(ABMapping1.BId), nameof(ABMapping1.AId))] public List AList { get; set; } } @@ -184,9 +184,9 @@ namespace OrmTest public int StudentId { get; set; } public string Name { get; set; } public int SchoolId { get; set; } - [Navigat(NavigatType.OneToOne, nameof(SchoolId))] + [Navigate(NavigateType.OneToOne, nameof(SchoolId))] public SchoolA SchoolA { get; set; } - [Navigat(NavigatType.OneToMany, nameof(BookA.studenId))] + [Navigate(NavigateType.OneToMany, nameof(BookA.studenId))] public List Books { get; set; } } @@ -195,7 +195,7 @@ namespace OrmTest [SugarColumn(IsPrimaryKey = true)] public int SchoolId { get; set; } public string SchoolName { get; set; } - [Navigat(NavigatType.OneToMany,nameof(RoomA.SchoolId))] + [Navigate(NavigateType.OneToMany,nameof(RoomA.SchoolId))] public List RoomList { get; set; } [SugarColumn(IsIgnore = true)] public List TeacherList { get; set; } diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom014.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom014.cs index 7a8a8efba..fad31b56a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom014.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom014.cs @@ -109,7 +109,7 @@ namespace OrmTest public int Id { get; set; } public string Name { get; set; } - [Navigat(NavigatType.OneToMany,nameof(Province111.CountryId))] + [Navigate(NavigateType.OneToMany,nameof(Province111.CountryId))] public List Provinces { get; set; } } [SugarTable("Province_111")] @@ -120,7 +120,7 @@ namespace OrmTest public string Name { get; set; } [SugarColumn(ColumnName = "coid")] public int CountryId { get; set; } - [Navigat(NavigatType.OneToMany, nameof(City111.ProvinceId))] + [Navigate(NavigateType.OneToMany, nameof(City111.ProvinceId))] public List citys { get; set; } } [SugarTable("City_111")] diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom015.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom015.cs index 58a24614d..77d26e22a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom015.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/UCustom015.cs @@ -73,10 +73,10 @@ namespace OrmTest public string Name { get; set; } public int InfoId { get; set; } - [Navigat(NavigatType.OneToOne, nameof(InfoId))] + [Navigate(NavigateType.OneToOne, nameof(InfoId))] public Country111Info Info { get; set; } - [Navigat(NavigatType.OneToMany,nameof(Province1111.CountryId))] + [Navigate(NavigateType.OneToMany,nameof(Province1111.CountryId))] public List Provinces { get; set; } }