Entity Framework에서 사용되는 다섯 가지 주요 매핑 패턴
첫 번째 매핑
테이블당 계층 구조(TPH: Table-Per-Hierarchy) 상속 매핑
모델 파일:
using System.Data.Entity;
namespace EFMapping
{
public class CourseContext : DbContext
{
public DbSet<LearningCourse> Courses { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
mode ...
7월 4일 01:04에 게시됨