2024-11-13 18:18:28 +08:00

76 lines
2.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//------------------------------------------------------------------------------
// <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
}
}