87 lines
2.6 KiB
C#
87 lines
2.6 KiB
C#
//----------rf_dbconnection开始----------
|
||
|
||
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_dbconnection
|
||
/// </summary>
|
||
[Table("rf_dbconnection")]
|
||
[Serializable]
|
||
public partial class rf_dbconnection: BaseEntity {
|
||
/// <summary>
|
||
/// 连接名称
|
||
/// </summary>
|
||
|
||
[Display(Name="连接名称")]
|
||
[Column("Name")]
|
||
[DataMember]
|
||
public string Name {get;set;}
|
||
/// <summary>
|
||
/// 连接类型
|
||
/// </summary>
|
||
|
||
[Display(Name="连接类型")]
|
||
[Column("ConnType")]
|
||
[DataMember]
|
||
public string ConnType {get;set;}
|
||
/// <summary>
|
||
/// 连接字符串
|
||
/// </summary>
|
||
|
||
[Display(Name="连接字符串")]
|
||
[Column("ConnString")]
|
||
[DataMember]
|
||
public string ConnString {get;set;}
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
|
||
[Display(Name="备注")]
|
||
[Column("Note")]
|
||
[DataMember]
|
||
public string Note {get;set;}
|
||
/// <summary>
|
||
/// 排序
|
||
/// </summary>
|
||
|
||
[Display(Name="排序")]
|
||
[Column("Sort")]
|
||
[DataMember]
|
||
public int Sort {get;set;}
|
||
|
||
public override string ToString()
|
||
{
|
||
return JSON.Serialize(this);
|
||
}
|
||
}
|
||
|
||
/**
|
||
/// <summary>
|
||
/// 数据表实体类Map:rf_dbconnection
|
||
/// </summary>
|
||
public class rf_dbconnectionMap : EntityTypeConfiguration<rf_dbconnection>
|
||
{
|
||
public rf_dbconnectionMap()
|
||
{
|
||
this.ToTable("rf_dbconnection");
|
||
this.HasKey(t => t.Id);
|
||
this.Property(t => t.Name).HasColumnName("Name").IsRequired();
|
||
this.Property(t => t.ConnType).HasColumnName("ConnType").IsRequired();
|
||
this.Property(t => t.ConnString).HasColumnName("ConnString").IsRequired();
|
||
this.Property(t => t.Note).HasColumnName("Note");
|
||
this.Property(t => t.Sort).HasColumnName("Sort").IsRequired();
|
||
}
|
||
}
|
||
**/
|
||
|
||
}
|
||
|
||
//----------rf_dbconnection结束----------
|
||
|
||
|