Files
number_zj/20220330_Vote/Ewide.RoadFlow/Entity/rf_flowcomment.cs
2022-03-30 17:54:33 +08:00

91 lines
2.6 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.
//----------rf_flowcomment开始----------
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;
//using System.Data.Entity.ModelConfiguration;
using System.Runtime.Serialization;
using Furion.JsonSerialization;
namespace RoadFlow.Model
{
/// <summary>
/// 数据表实体类rf_flowcomment
/// </summary>
[Table("rf_flowcomment")]
[Serializable]
public partial class rf_flowcomment: BaseEntity, IEqualityComparer<rf_flowcomment>
{
/// <summary>
/// 意见使用人
/// </summary>
[Display(Name="意见使用人")]
[Column("UserId")]
[DataMember]
public string UserId {get;set;}
/// <summary>
/// 类型 0用户添加 1管理员添加
/// </summary>
[Display(Name="类型 0用户添加 1管理员添加")]
[Column("AddType")]
[DataMember]
public int AddType {get;set;}
/// <summary>
/// 意见
/// </summary>
[Display(Name="意见")]
[Column("Comments")]
[DataMember]
public string Comments {get;set;}
/// <summary>
/// 排序
/// </summary>
[Display(Name="排序")]
[Column("Sort")]
[DataMember]
public int Sort {get;set;}
public bool Equals(rf_flowcomment x, rf_flowcomment y)
{
return x.Comments == y.Comments;
}
public int GetHashCode([DisallowNull] rf_flowcomment obj)
{
return obj.Comments.GetHashCode();
}
public override string ToString()
{
return JSON.Serialize(this);
}
}
/**
/// <summary>
/// 数据表实体类Maprf_flowcomment
/// </summary>
public class rf_flowcommentMap : EntityTypeConfiguration<rf_flowcomment>
{
public rf_flowcommentMap()
{
this.ToTable("rf_flowcomment");
this.HasKey(t => t.Id);
this.Property(t => t.UserId).HasColumnName("UserId").IsRequired();
this.Property(t => t.AddType).HasColumnName("AddType").IsRequired();
this.Property(t => t.Comments).HasColumnName("Comments").IsRequired();
this.Property(t => t.Sort).HasColumnName("Sort").IsRequired();
}
}
**/
}
//----------rf_flowcomment结束----------