mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 12:09:29 +08:00
Update demo
This commit is contained in:
37
Src/Asp.Net/PerformanceTest/Models/ModelTest.cs
Normal file
37
Src/Asp.Net/PerformanceTest/Models/ModelTest.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using PerformanceTest.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace PerformanceTest.Models2
|
||||
{
|
||||
public class Group
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public int Id { get; set; } //Id、GroupId、Group_id
|
||||
public string Name { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public List<User> AUsers { get; set; }
|
||||
}
|
||||
}
|
||||
namespace PerformanceTest.Models
|
||||
{
|
||||
public class Group
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey =true)]
|
||||
public int Id { get; set; } //Id、GroupId、Group_id
|
||||
public string Name { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore =true)]
|
||||
public ICollection<User> AUsers { get; set; }
|
||||
}
|
||||
|
||||
public class User
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
public int Id { get; set; } //Id、UserId、User_id
|
||||
public int AGroupId { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public Group AGroup { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user