- 增加 CodeFirst 实体类注释 -> 表备注,之前只能属性注释 -> 字段备注;

This commit is contained in:
28810
2020-03-31 12:42:13 +08:00
parent efedc894bf
commit 72c3d91ca1
22 changed files with 253 additions and 182 deletions

View File

@@ -8,10 +8,10 @@ using FreeSql;
namespace EMSServerModel.Model
{
/// <summary>
/// 用户表
/// 用户表bb123123
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public partial class User : BaseEntity<User, long>{
public partial class User : BaseEntity<User> {
//[JsonProperty, Column(IsIdentity = true)]
//public long Id { get; set; }

View File

@@ -5,12 +5,12 @@ using FreeSql;
namespace EMSServerModel.Model
{
/// <summary>
/// 用户角色关系表
/// 用户角色关系表aa111
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public partial class UserRole : BaseEntity<UserRole>{
/// <summary>
/// 角色编号
/// 角色编号1
/// </summary>
[JsonProperty]
public long RoleId { get; set; }