123456789101112131415161718192021222324252627282930313233 |
- namespace EMISOnline.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 EM_CourseChapter_Video_Mapping : EntityTypeConfiguration<EM_CourseChapter_Video>
- {
- public EM_CourseChapter_Video_Mapping()
- {
- this.HasKey(t => new {t.CourseVideoID, t.CourseChapterID});
- this.ToTable("EM_CourseChapter_Video");
- this.Property(t => t.CourseVideoID).HasColumnName("CourseVideoID");
- this.Property(t => t.CourseChapterID).HasColumnName("CourseChapterID");
- this.HasRequired(t => t.EM_CourseVideo).WithMany(t => t.EM_CourseChapter_Video).HasForeignKey(d => d.CourseVideoID);
- }
- }
- }
|