//----------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 { /// /// 数据表实体类:rf_flowcomment /// [Table("rf_flowcomment")] [Serializable] public partial class rf_flowcomment: BaseEntity, IEqualityComparer { /// /// 意见使用人 /// [Display(Name="意见使用人")] [Column("UserId")] [DataMember] public string UserId {get;set;} /// /// 类型 0用户添加 1管理员添加 /// [Display(Name="类型 0用户添加 1管理员添加")] [Column("AddType")] [DataMember] public int AddType {get;set;} /// /// 意见 /// [Display(Name="意见")] [Column("Comments")] [DataMember] public string Comments {get;set;} /// /// 排序 /// [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); } } /** /// /// 数据表实体类Map:rf_flowcomment /// public class rf_flowcommentMap : EntityTypeConfiguration { 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结束----------