C# Class Zetbox.App.Extensions.RelationExtensions

Mostra file Open project: daszat/zetbox

Public Methods

Method Description
GetAssociationName ( this rel ) : string

Returns the association name for the given relation

GetOtherEndFromRole ( this rel, RelationEndRole role ) : RelationEnd
GetParent ( this relEnd ) : Relation
GetReferencedObjectClass ( this prop ) : ObjectClass
GetRelationAssociationName ( this rel, RelationEndRole endRole ) : string

Returns the association name for the association from the given end to the CollectionEntry

GetRole ( this relEnd ) : RelationEndRole
HasStorage ( this rel, RelationEndRole role ) : bool
IsNullable ( this relEnd ) : bool
Lookup ( IZetboxContext ctx, ObjectReferenceProperty prop ) : Relation

Method Details

GetAssociationName() public static method

Returns the association name for the given relation
public static GetAssociationName ( this rel ) : string
rel this
return string

GetOtherEndFromRole() public static method

public static GetOtherEndFromRole ( this rel, RelationEndRole role ) : RelationEnd
rel this
role RelationEndRole
return RelationEnd

GetParent() public static method

public static GetParent ( this relEnd ) : Relation
relEnd this
return Relation

GetReferencedObjectClass() public static method

public static GetReferencedObjectClass ( this prop ) : ObjectClass
prop this
return ObjectClass

GetRelationAssociationName() public static method

Returns the association name for the association from the given end to the CollectionEntry
public static GetRelationAssociationName ( this rel, RelationEndRole endRole ) : string
rel this
endRole RelationEndRole
return string

GetRole() public static method

public static GetRole ( this relEnd ) : RelationEndRole
relEnd this
return RelationEndRole

HasStorage() public static method

public static HasStorage ( this rel, RelationEndRole role ) : bool
rel this
role RelationEndRole
return bool

IsNullable() public static method

public static IsNullable ( this relEnd ) : bool
relEnd this
return bool

Lookup() public static method

public static Lookup ( IZetboxContext ctx, ObjectReferenceProperty prop ) : Relation
ctx IZetboxContext
prop ObjectReferenceProperty
return Relation