myEntity.Relations does not return a collection
here is sample code what I am trying ...
Dim myEntity As Object
myEntity = Activator.CreateInstance(assemblyName, myEntityName).Unwrap
Dim myEntityRelations As RelationCollection = myEntity.relations
For Each myEntityRelation As EntityRelation In myEntity.relations
If myEntityRelation.TypeOfRelation = RelationType.OneToOne Then
.........
End If
Next
this does not work as the myEntity.Realtions does not return a collection .....
Is there another way I can achive this ..... thanks !!