MCVef/Models/HospitalModel.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
namespace MCVef.Models
{
public partial class HospitalModel : DbContext
{
public HospitalModel()
: base()
{
}
public virtual DbSet<Application> Application { get; set; }
public virtual DbSet<Bill> Bill { get; set; }
public virtual DbSet<BillDetail> BillDetail { get; set; }
public virtual DbSet<DiagnosisHistory> DiagnosisHistory { get; set; }
public virtual DbSet<Doctor> Doctor { get; set; }
public virtual DbSet<DrugWarehouse> DrugWarehouse { get; set; }
public virtual DbSet<FeeCollector> FeeCollector { get; set; }
public virtual DbSet<LoginUser> LoginUser { get; set; }
public virtual DbSet<MedicalRecord> MedicalRecord { get; set; }
public virtual DbSet<Regist> Regist { get; set; }
public virtual DbSet<Register> Register { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
//Database.SetInitializer<HospitalModel>(new DropCreateDatabaseIfModelChanges<HospitalModel>());
//Database.SetInitializer(new HospitalDBInitializer());
//modelBuilder.Entity<Application>()
// .Property(e => e.applyType)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.bedNum)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.sector)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.sampleType)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.others)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.results)
// .IsUnicode(false);
//modelBuilder.Entity<Application>()
// .Property(e => e.testerName)
// .IsUnicode(false);
//modelBuilder.Entity<Bill>()
// .Property(e => e.billType)
后面还有 96 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。