28810 c78c4ed7ae - 修复 实体类型为 char 时 ExpressionTree 读取失败 bug;#283
- 修复 表达式解析 Include 父子导航可能失败的 bug;
2020-04-22 14:37:30 +08:00

76 lines
1.9 KiB
C#
Raw 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
}
}