Where ORM Structural Patterns Stand in Repository and ORM
We have extracted set of ORM mapping rules to map Table to Classes and to map
Data Member to Columns.
Previouly, we do this work manually, keep all info in head. By seeing DB we make Domain Model or by seeing Domain Model we do DB Schema. Both ways we do things manully keepding Mapping Rules in our mind.
With ORM and Repositories, things have become abstraced and bit complicated.
In Modern ORM such Mappings are specied by Language Conventions, Data Annotations and Fluent APIs. and these Mapping Specs are stored in MetaDataMappings Tables. On runtime ORM see this table and map tables to classes and colums to data mebers and vice versa.
Mapping Store ==> (archieve) Mappings
ORM Meta Data Mapping Store archieve all the mappings between Objects and Tables
ORM Meta Data Mapping Pattern help us define the mappings those are stored in the above store.
We have extracted set of ORM mapping rules to map Table to Classes and to map
Data Member to Columns.
Previouly, we do this work manually, keep all info in head. By seeing DB we make Domain Model or by seeing Domain Model we do DB Schema. Both ways we do things manully keepding Mapping Rules in our mind.
With ORM and Repositories, things have become abstraced and bit complicated.
In Modern ORM such Mappings are specied by Language Conventions, Data Annotations and Fluent APIs. and these Mapping Specs are stored in MetaDataMappings Tables. On runtime ORM see this table and map tables to classes and colums to data mebers and vice versa.
Mapping Store ==> (archieve) Mappings
ORM Meta Data Mapping Store archieve all the mappings between Objects and Tables
ORM Meta Data Mapping Pattern help us define the mappings those are stored in the above store.
No comments:
Post a Comment