内部 SQL 格式优化

This commit is contained in:
28810
2020-07-18 13:50:26 +08:00
parent 8d11993e6c
commit 7471df5924
58 changed files with 1265 additions and 1249 deletions

View File

@ -13,54 +13,54 @@ using Newtonsoft.Json;
using FreeSql.DataAnnotations;
namespace FreeSql.Jhfw.Models {
[JsonObject(MemberSerialization.OptIn), Table(Name = "banks")]
public partial class Banks : IBaseModel<int>
[JsonObject(MemberSerialization.OptIn), Table(Name = "banks")]
public partial class Banks : IBaseModel<int>
{
[JsonProperty, Column(DbType = "datetime")]
public DateTime? Addtime { get; set; }
[JsonProperty, Column(DbType = "datetime")]
public DateTime? Addtime { get; set; }
[JsonProperty, Column(DbType = "varchar(250)")]
public string Banner { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(250)")]
public string Banner { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(20)")]
public string City { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(20)")]
public string City { get; set; } = "";
[JsonProperty, Column(Name = "ID", IsIdentity = true)]
public int Id { get; set; }
[JsonProperty, Column(Name = "ID", IsIdentity = true)]
public int Id { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsDelete { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsDelete { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsGrab { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsGrab { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsJoinHmd { get; set; }
[JsonProperty, Column(DbType = "tinyint(1)")]
public bool IsJoinHmd { get; set; }
[JsonProperty, Column(DbType = "varchar(100)")]
public string LoanType { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(100)")]
public string LoanType { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(250)")]
public string Logo { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(250)")]
public string Logo { get; set; } = "";
[JsonProperty]
public string Name { get; set; } = "";
[JsonProperty]
public string Name { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(3000)")]
public string Notice { get; set; } = "";
[JsonProperty, Column(DbType = "varchar(3000)")]
public string Notice { get; set; } = "";
#region => OneToMany
#region => OneToMany
[Navigate("BankId")]
public virtual List<BankOutlets> ManyBankOutlets { get; set; }
[Navigate("BankId")]
public virtual List<BankOutlets> ManyBankOutlets { get; set; }
#endregion
#endregion
#region => ManyToMany
#region => ManyToMany
#endregion
}
#endregion
}
}