mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Optimize project catalog
This commit is contained in:
34
Src/Asp.NetCore2/CustomDbTest/Models/DataDictionary.cs
Normal file
34
Src/Asp.NetCore2/CustomDbTest/Models/DataDictionary.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public class DataDictionary
|
||||
{
|
||||
public string Code { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
}
|
||||
|
||||
public class Person
|
||||
{
|
||||
//数据库字段
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int SexId { get; set; }
|
||||
public int CityId { get; set; }
|
||||
public int ProviceId { get; set; }
|
||||
|
||||
//非数据库字段
|
||||
[SqlSugar.SugarColumn(IsIgnore =true)]
|
||||
public string SexName { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public string CityName { get; set; }
|
||||
[SqlSugar.SugarColumn(IsIgnore = true)]
|
||||
public string ProviceName { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user