mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 实体类型为 char 时 ExpressionTree 读取失败 bug;#283
- 修复 表达式解析 Include 父子导航可能失败的 bug;
This commit is contained in:
@ -0,0 +1,75 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user