mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-15 23:42:51 +08:00
76 lines
2.1 KiB
C#
76 lines
2.1 KiB
C#
//------------------------------------------------------------------------------
|
||
// <auto-generated>
|
||
// 此代码由工具 FreeSql.Generator 生成。
|
||
// 运行时版本:3.1.0
|
||
// Website: https://github.com/2881099/FreeSql
|
||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||
// 重新生成代码,这些更改将会丢失。
|
||
// </auto-generated>
|
||
//------------------------------------------------------------------------------
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using Newtonsoft.Json;
|
||
using FreeSql.DataAnnotations;
|
||
namespace FreeSql.Jhfw.Models {
|
||
|
||
public interface IBaseModel<TKey>
|
||
{
|
||
TKey Id { get; set; }
|
||
}
|
||
[JsonObject(MemberSerialization.OptIn), Table(Name = "bank_outlets")]
|
||
public partial class BankOutlets : IBaseModel<int>
|
||
{
|
||
|
||
[JsonProperty]
|
||
public int? BankId { get => _BankId; set {
|
||
if (_BankId == value) return;
|
||
_BankId = value;
|
||
OneBanks = null;
|
||
}}
|
||
private int? _BankId;
|
||
|
||
[JsonProperty]
|
||
public int? ParentId { get => _ParentId; set {
|
||
if (_ParentId == value) return;
|
||
_ParentId = value;
|
||
OneBankOutlets = null;
|
||
}}
|
||
private int? _ParentId;
|
||
|
||
[JsonProperty]
|
||
public string Address { get; set; } = "";
|
||
|
||
[JsonProperty, Column(DbType = "varchar(50)")]
|
||
public string Area { get; set; } = "";
|
||
|
||
[JsonProperty, Column(Name = "ID", IsIdentity = true)]
|
||
public int Id { get; set; }
|
||
|
||
[JsonProperty, Column(DbType = "varchar(50)")]
|
||
public string Name { get; set; } = "";
|
||
|
||
|
||
#region 外键 => 导航属性,ManyToOne/OneToOne
|
||
|
||
[Navigate("BankId")]
|
||
public virtual Banks OneBanks { get; set; }
|
||
|
||
[Navigate("ParentId")]
|
||
public virtual BankOutlets OneBankOutlets { get; set; }
|
||
|
||
#endregion
|
||
|
||
#region 外键 => 导航属性,OneToMany
|
||
|
||
[Navigate("ParentId")]
|
||
public virtual List<BankOutlets> ManyBankOutlets { get; set; }
|
||
|
||
#endregion
|
||
|
||
#region 外键 => 导航属性,ManyToMany
|
||
|
||
#endregion
|
||
}
|
||
|
||
}
|