namespace Web12306.Models.Entity { using System; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; public class AbuseReport { public int Id { get; set; } public string Data { get; set; } public string Reporting_Name { get; set; } public string Reporting_Account { get; set; } public string Alleged_WrongDoer_Account { get; set; } public string Alleged_WrongDoer_Name { get; set; } public DateTime Ctime { get; set; } public DateTime MTime { get; set; } public string Data_Reason { get; set; } public int Is_Check { get; set; } public string RoomKey { get; set; } } internal class AbuseReportConfiguration : EntityTypeConfiguration { public AbuseReportConfiguration() { ToTable("message_abusereport"); HasKey(s => s.Id); Property(s => s.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); } } }