91 lines
2.6 KiB
C#
91 lines
2.6 KiB
C#
//----------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>
|
||
/// 数据表实体类Map:rf_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结束----------
|
||
|
||
|