Property | Type | Description | |
---|---|---|---|
CheckReverseRelationshipValid | void | ||
FKFoundOnOwnerClass | bool | ||
FKFoundOnRelatedClass | bool | ||
GetDeleteAction | DeleteParentAction | ||
GetFkPropName | string | ||
IsDefinedAsAssociation | bool | ||
IsDefinedAsCompositionOrAggregation | bool | ||
IsDefinedAsCompositionOrAggregation | bool | ||
OwnerClassNameGTRelatedClassName | bool | ||
ReverseRelationshipIsDefinedAsAggregationOrComposition | bool | ||
SetRelationshipType | void |
Method | Description | |
---|---|---|
CreateRelPropDef ( ) : IRelPropDef |
Create a RelPropDef based on the OwningPrropName and the RelatedPropName.
|
|
GetOwningPropName ( ) : string |
Using a set of heuristics the Owning Property Name is determined from the RelationshipName and any attributes on the Property. I.e. The Property of the class that owns this One To One Relationship. I.e. The Property on the Class that owns the Property that wrapped by the PropertyWrapper.
|
|
GetRelatedPropName ( ) : string |
Using a set of heuristics the Related Property Name is determined from the RelationshipName and any attributes on the Property. I.e. The Property of the class that is related by One To One Relationship. I.e. The Property on the Class that is returned by the Property that is wrapped by the PropertyWrapper.
|
|
MapOneToOne ( ) : IRelationshipDef |
Maps the ReflectionWrappers.PropertyWrapper to a IRelationshipDef.
|
|
MustBeMapped ( ) : bool |
Determines based on heuristics whether the Property wrapped by the ReflectionWrappers.PropertyWrapper must be mapped to a One to One Relationship or not
|
|
OneToOneAutoMapper ( PropertyWrapper propWrap ) : System |
Construct a One to One Relationship mapper.
|
Method | Description | |
---|---|---|
CheckReverseRelationshipValid ( ) : void | ||
FKFoundOnOwnerClass ( ) : bool | ||
FKFoundOnRelatedClass ( ) : bool | ||
GetDeleteAction ( ) : DeleteParentAction | ||
GetFkPropName ( string relationshipName ) : string | ||
IsDefinedAsAssociation ( ) : bool |
If this relationship is defined (I.e. defined via an attribute) as Association then return true.
|
|
IsDefinedAsCompositionOrAggregation ( ) : bool | ||
IsDefinedAsCompositionOrAggregation ( PropertyWrapper propertyWrapper ) : bool |
If the propertyWrapper is defined as Composition or Aggregation via attributes then return true.
|
|
OwnerClassNameGTRelatedClassName ( TypeWrapper ownerClassType, TypeWrapper relatedClassType ) : bool | ||
ReverseRelationshipIsDefinedAsAggregationOrComposition ( ) : bool |
If the reverse relationship is defined as Composition or Aggregation via attributes then return true.
|
|
SetRelationshipType ( |
public OneToOneAutoMapper ( PropertyWrapper propWrap ) : System | ||
propWrap | PropertyWrapper | |
return | System |