V1版本
This commit is contained in:
42
CapMachine.Model/ModelMapConfig/ModelMap.cs
Normal file
42
CapMachine.Model/ModelMapConfig/ModelMap.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Model.ModelMapConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// ModelMap
|
||||
/// 模型的匹配
|
||||
/// </summary>
|
||||
[Table(Name = "ModelMap")]
|
||||
public class ModelMap
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[Column(Name = "Name", IsNullable = true, StringLength = 50)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
[Column(Name = "Comment", IsNullable = true, StringLength = 50)]
|
||||
public string? Comment { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
/// </summary>
|
||||
|
||||
public List<Columns>? Columns { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user