123 lines
4.3 KiB
C#
123 lines
4.3 KiB
C#
//----------rf_message开始----------
|
||
|
||
using System;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
//using System.Data.Entity.ModelConfiguration;
|
||
using System.Runtime.Serialization;
|
||
using Furion.JsonSerialization;
|
||
namespace RoadFlow.Model
|
||
{
|
||
/// <summary>
|
||
/// 数据表实体类:rf_message
|
||
/// </summary>
|
||
[Table("rf_message")]
|
||
[Serializable]
|
||
public partial class rf_message: BaseEntity {
|
||
/// <summary>
|
||
/// 消息内容
|
||
/// </summary>
|
||
|
||
[Display(Name="消息内容")]
|
||
[Column("Contents")]
|
||
[DataMember]
|
||
public string Contents {get;set;}
|
||
/// <summary>
|
||
/// 发送方式 0站内消息 1手机短信 2微信
|
||
/// </summary>
|
||
|
||
[Display(Name="发送方式 0站内消息 1手机短信 2微信 ")]
|
||
[Column("SendType")]
|
||
[DataMember]
|
||
public string SendType {get;set;}
|
||
/// <summary>
|
||
/// 是否是站内短信(把发送类型分开是为了提高查询效率)
|
||
/// </summary>
|
||
|
||
[Display(Name="是否是站内短信(把发送类型分开是为了提高查询效率)")]
|
||
[Column("SiteMessage")]
|
||
[DataMember]
|
||
public int SiteMessage {get;set;}
|
||
/// <summary>
|
||
/// 发送人
|
||
/// </summary>
|
||
|
||
[Display(Name="发送人")]
|
||
[Column("SenderId")]
|
||
[DataMember]
|
||
public string SenderId {get;set;}
|
||
/// <summary>
|
||
/// 发送人姓名
|
||
/// </summary>
|
||
|
||
[Display(Name="发送人姓名")]
|
||
[Column("SenderName")]
|
||
[DataMember]
|
||
public string SenderName {get;set;}
|
||
/// <summary>
|
||
/// 接收人组织机构字符串
|
||
/// </summary>
|
||
|
||
[Display(Name="接收人组织机构字符串")]
|
||
[Column("ReceiverIdString")]
|
||
[DataMember]
|
||
public string ReceiverIdString {get;set;}
|
||
/// <summary>
|
||
/// 发送时间
|
||
/// </summary>
|
||
|
||
[Display(Name="发送时间")]
|
||
[Column("SendTime")]
|
||
[DataMember]
|
||
public DateTime SendTime {get;set;}
|
||
/// <summary>
|
||
/// 1:用户发送消息 2:系统消息
|
||
/// </summary>
|
||
|
||
[Display(Name="1:用户发送消息 2:系统消息")]
|
||
[Column("Type")]
|
||
[DataMember]
|
||
public int Type {get;set;}
|
||
/// <summary>
|
||
/// 附件(用来保存消息连接地址)
|
||
/// </summary>
|
||
|
||
[Display(Name="附件(用来保存消息连接地址)")]
|
||
[Column("Files")]
|
||
[DataMember]
|
||
public string Files {get;set;}
|
||
|
||
public override string ToString()
|
||
{
|
||
return JSON.Serialize(this);
|
||
}
|
||
}
|
||
|
||
/**
|
||
/// <summary>
|
||
/// 数据表实体类Map:rf_message
|
||
/// </summary>
|
||
public class rf_messageMap : EntityTypeConfiguration<rf_message>
|
||
{
|
||
public rf_messageMap()
|
||
{
|
||
this.ToTable("rf_message");
|
||
this.HasKey(t => t.Id);
|
||
this.Property(t => t.Contents).HasColumnName("Contents").IsRequired();
|
||
this.Property(t => t.SendType).HasColumnName("SendType").IsRequired();
|
||
this.Property(t => t.SiteMessage).HasColumnName("SiteMessage").IsRequired();
|
||
this.Property(t => t.SenderId).HasColumnName("SenderId");
|
||
this.Property(t => t.SenderName).HasColumnName("SenderName");
|
||
this.Property(t => t.ReceiverIdString).HasColumnName("ReceiverIdString").IsRequired();
|
||
this.Property(t => t.SendTime).HasColumnName("SendTime").IsRequired();
|
||
this.Property(t => t.Type).HasColumnName("Type").IsRequired();
|
||
this.Property(t => t.Files).HasColumnName("Files");
|
||
}
|
||
}
|
||
**/
|
||
|
||
}
|
||
|
||
//----------rf_message结束----------
|
||
|
||
|