33 lines
717 B
C#
33 lines
717 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Web;
|
|||
|
|
|||
|
namespace Web12306.Models.Entity
|
|||
|
{
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using System.Data.Entity.ModelConfiguration;
|
|||
|
|
|||
|
public class ForbiddenUser
|
|||
|
{
|
|||
|
public long Id { get; set; }
|
|||
|
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
public long FreeTime { get; set; }
|
|||
|
|
|||
|
public string Creator { get; set; }
|
|||
|
|
|||
|
public long? CreateTime { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
internal class ForbiddenUserConfiguration : EntityTypeConfiguration<ForbiddenUser>
|
|||
|
{
|
|||
|
public ForbiddenUserConfiguration()
|
|||
|
{
|
|||
|
ToTable("ForbiddenUser");
|
|||
|
HasKey(s => s.Id);
|
|||
|
Property(s => s.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|