MonoSoftware.MonoX.DAL.EntityClasses.OaConsumerEntity.CheckOneWayRelations C# (CSharp) Method

CheckOneWayRelations() protected method

Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation
protected CheckOneWayRelations ( string propertyName ) : bool
propertyName string Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided
return bool
        protected override bool CheckOneWayRelations(string propertyName)
        {
            int numberOfOneWayRelations = 0;
            switch(propertyName)
            {
                case null:
                    return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null));
                default:
                    return base.CheckOneWayRelations(propertyName);
            }
        }