1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated from a template.
- //
- // Manual changes to this file may cause unexpected behavior in your application.
- // Manual changes to this file will be overwritten if the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace EMIS.Entities
- {
- #pragma warning disable 1573
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Data.Common;
- using System.Data.Entity;
- using System.Data.Entity.ModelConfiguration;
- using System.Data.Entity.Infrastructure;
- using System.ComponentModel.DataAnnotations.Schema;
-
- internal partial class CF_TeachingMaterialPool_Mapping : EntityTypeConfiguration<CF_TeachingMaterialPool>
- {
- public CF_TeachingMaterialPool_Mapping()
- {
- this.HasKey(t => t.TeachingMaterialPoolID);
- this.ToTable("CF_TeachingMaterialPool");
- this.Property(t => t.TeachingMaterialPoolID).HasColumnName("TeachingMaterialPoolID");
- this.Property(t => t.TeachingMaterialCode).HasColumnName("TeachingMaterialCode").IsRequired().IsUnicode(false).HasMaxLength(50);
- this.Property(t => t.ISBN).HasColumnName("ISBN").IsUnicode(false).HasMaxLength(50);
- this.Property(t => t.TeachingMaterialName).HasColumnName("TeachingMaterialName").IsRequired().IsUnicode(false).HasMaxLength(200);
- this.Property(t => t.TeachingMaterialShorName).HasColumnName("TeachingMaterialShorName").IsUnicode(false).HasMaxLength(200);
- this.Property(t => t.TeachingMaterialTypeID).HasColumnName("TeachingMaterialTypeID");
- this.Property(t => t.WnningLevel).HasColumnName("WnningLevel");
- this.Property(t => t.PublishTime).HasColumnName("PublishTime").IsUnicode(false).HasMaxLength(50);
- this.Property(t => t.PublishID).HasColumnName("PublishID");
- this.Property(t => t.Author).HasColumnName("Author").IsUnicode(false).HasMaxLength(50);
- this.Property(t => t.Price).HasColumnName("Price");
- this.Property(t => t.IsLate).HasColumnName("IsLate");
- this.Property(t => t.CreateTime).HasColumnName("CreateTime");
- this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
- this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
- this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
- this.Property(t => t.Desc).HasColumnName("Desc").IsUnicode(false).HasMaxLength(500);
- this.Property(t => t.MinInventory).HasColumnName("MinInventory");
- this.HasOptional(t => t.CF_Publish).WithMany(t => t.CF_TeachingMaterialPool).HasForeignKey(d => d.PublishID);
- this.HasMany(t => t.EM_Coursematerial).WithMany(t => t.CF_TeachingMaterialPool)
- .Map(m =>
- {
- m.ToTable("CF_TeachingMaterialPool_EM_Coursematerial");
- m.MapLeftKey("TeachingMaterialPoolID");
- m.MapRightKey("CoursematerialID");
- });
- }
- }
- }
|