SqlSugar源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

4 years ago
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; }
}
}