C# 클래스 EntityFramework.Metadata.Mappers.MapperBase

파일 보기 프로젝트 열기: schneidenbach/EntityFramework.Metadata

보호된 프로퍼티들

프로퍼티 타입 설명
MetadataWorkspace MetadataWorkspace
_entityMaps EntityMap>.Dictionary

공개 메소드들

메소드 설명
BindForeignKeys ( ) : void

MapEntity ( string typeFullName, System.Data.Entity.Core.Metadata.Edm.EdmType edmItem ) : EntityMap

보호된 메소드들

메소드 설명
GetTphData ( ) : TphData>.Dictionary
GetTypeMappingsEf6 ( ) : EntityType>.Dictionary

Type name and Edm.EntityType map for EF6+ Key is type full name (Also OSpace item fullname and OCSpace identity) Value is EntityType from CSpace

MapperBase ( MetadataWorkspace metadataWorkspace, System.Data.Entity.Core.Metadata.Edm.EntityContainer entityContainer ) : System

PrepareMapping ( string typeFullName, System.Data.Entity.Core.Metadata.Edm.EdmType edmitem ) : PrepareMappingRes

비공개 메소드들

메소드 설명
ActuallyAddAProperty ( EntityMap entityMap, System.Data.Entity.Core.Metadata.Edm.EdmProperty edmProperty, string propName, string columnName, System.Data.Entity.Core.Metadata.Edm.EdmMember edmMember ) : void
GetPropertiesToMap ( EntityMap entityMap, IEnumerable properties ) : IEnumerable

Gets properties that are ment for given type. TPH columns are ordered by hierarchy and type name. First columns are from base class. Derived types, which name starts with 'A', columns are before type, which name starts with 'B' etc. So the logic is to include all properties inherited from base types and exclude all already bound properties from siblings.

RegEntity ( string typeFullName, string tableName, string schema ) : EntityMap

TryGetRefObjectType ( string typeFullName ) : Type

메소드 상세

BindForeignKeys() 공개 메소드

public BindForeignKeys ( ) : void
리턴 void

GetTphData() 보호된 메소드

protected GetTphData ( ) : TphData>.Dictionary
리턴 TphData>.Dictionary

GetTypeMappingsEf6() 보호된 메소드

Type name and Edm.EntityType map for EF6+ Key is type full name (Also OSpace item fullname and OCSpace identity) Value is EntityType from CSpace
protected GetTypeMappingsEf6 ( ) : EntityType>.Dictionary
리턴 EntityType>.Dictionary

MapEntity() 공개 메소드

public MapEntity ( string typeFullName, System.Data.Entity.Core.Metadata.Edm.EdmType edmItem ) : EntityMap
typeFullName string
edmItem System.Data.Entity.Core.Metadata.Edm.EdmType
리턴 EntityMap

MapperBase() 보호된 메소드

protected MapperBase ( MetadataWorkspace metadataWorkspace, System.Data.Entity.Core.Metadata.Edm.EntityContainer entityContainer ) : System
metadataWorkspace MetadataWorkspace
entityContainer System.Data.Entity.Core.Metadata.Edm.EntityContainer Code first or DB first entityContainer
리턴 System

PrepareMapping() 보호된 추상적인 메소드

protected abstract PrepareMapping ( string typeFullName, System.Data.Entity.Core.Metadata.Edm.EdmType edmitem ) : PrepareMappingRes
typeFullName string
edmitem System.Data.Entity.Core.Metadata.Edm.EdmType
리턴 PrepareMappingRes

프로퍼티 상세

MetadataWorkspace 보호되어 있는 프로퍼티

The magic box
protected MetadataWorkspace MetadataWorkspace
리턴 MetadataWorkspace

_entityMaps 보호되어 있는 프로퍼티

Table mappings dictionary where key is entity type full name.
protected Dictionary _entityMaps
리턴 EntityMap>.Dictionary