Opf.Maps
Class ClassMap


public class ClassMap


The ClassMap is the in memory representation of a object relational class map.
A consists off:
* class field to database column mapping
* class field to public property mapping
* class relations

summary
The ClassMap is the in memory representation of a object relational class map.
A consists off:
* class field to database column mapping
* class field to public property mapping
* class relations

Field Summary
 TypeClassType
           
 string[]DataContainers
           
 string[]DataMembers
           
 stringDirectDataContainer
           
 IListDirectMemberMaps
           
 IListForeignRelations
           
 boolHasChildClassMaps
           
 FieldInfoKeyClassMember
           
 stringKeyDataMember
           
 string[]KeyDataMembers
           
 stringName
          
Namespace qualified class name
 IListNestedRelations
           
 IListXToOneRelations
           

Constructor Summary
ClassMap(string className)
          
Constructor where type is not loaded yet

Method Summary
 voidAddMemberMap(string privateName, string publicName, string dataContainer, string dataMember)
           
 voidAddMemberMap(string privateName, string publicName, string dataContainer, string dataMember, bool isKey)
           
 voidFillCustomerInfo()
           
 stringGetMemberValue(string memberName)
           
 object[]GetObjectKey(object domainObject)
           

Field Detail

ClassType

public Type ClassType

DataContainers

public string[] DataContainers

DataMembers

public string[] DataMembers

DirectDataContainer

public string DirectDataContainer

DirectMemberMaps

public IList DirectMemberMaps

ForeignRelations

public IList ForeignRelations

HasChildClassMaps

public bool HasChildClassMaps

KeyClassMember

public FieldInfo KeyClassMember

KeyDataMember

public string KeyDataMember

KeyDataMembers

public string[] KeyDataMembers

Name

public string Name

Namespace qualified class name
summary
Namespace qualified class name

NestedRelations

public IList NestedRelations

XToOneRelations

public IList XToOneRelations
Constructor Detail

ClassMap

public ClassMap(string className)

Constructor where type is not loaded yet
Parameters:
The classname with namespace
summary
Constructor where type is not loaded yet
Method Detail

AddMemberMap

public void AddMemberMap(string privateName, string publicName, string dataContainer, string dataMember)

AddMemberMap

public void AddMemberMap(string privateName, string publicName, string dataContainer, string dataMember, bool isKey)

FillCustomerInfo

public void FillCustomerInfo()

GetMemberValue

public string GetMemberValue(string memberName)

GetObjectKey

public object[] GetObjectKey(object domainObject)

Association Links

to Class Opf.MemberMap