Introduce
Object/Relation Mapping(ORM)
Work with relational data as domain-specific objects
Eliminating the need for most of the data access plumbing code
Benefits
개발시간이 절감된다.
개발자는 응용프로그램을 구현하는 입장에서 개체 모델의 관점에서 작업할 수 있다.
응용프로그램은 독립적인 개념적 모델을 지원함으로써 실제 데이터 저장소에 대한 종속이 해방될 수 있다.
객체 모델과 특정 데이터 저장소의 스키마 사이의 매핑을 응용프로그램의 코드를 변경하지 않고도 가능하다.
LINQ지원으로 개념적 모델에 대한 질의 시에 인텔리센스가 제공되며 컴파일 타임에서 구문 유효성 검사가 제공된다.
http://msdn.microsoft.com/en-us/data/aa937709.aspx
Getting started
Nuget: install-package EntityFramework
Videos
References
ePubs
Repository pattern
Application code에서 DbContext를 접근하기 전 하나의 layer를 두고, 이를 통해서 mock data에 기반한 test를 돕기 위한 pattern
아래는 MVC에서의 repository pattern을 도식화한 내용임
Nuget: Install-Package GenericRepository.EF
'Programming > ORM' 카테고리의 다른 글
iBatis vs. Hibernate 논쟁 (0) | 2014.07.22 |
---|---|
6.1 bug? (0) | 2014.07.22 |
enum support (0) | 2014.07.22 |
More faster! (0) | 2014.07.22 |
ORM comparison (0) | 2014.07.22 |