public GetViewRelations ( ) : ViewRelationCollection | ||
return | ViewRelationCollection |
public ViewRelationCollection GetViewRelations()
{
try
{
var retval = new ViewRelationCollection(this.Root);
foreach (var r in this.ViewRelationships.AsEnumerable())
{
var relation = r.Object as ViewRelation;
if (relation != null)
{
if (relation.ChildView.Generated)
retval.Add(relation);
}
}
return retval;
}
catch (Exception ex)
{
throw;
}
}