public bool IsAllowed(OeModelBoundProvider modelBoundProvider, IEdmProperty property, OeModelBoundKind modelBoundKind) { SelectExpandType?propertySetting = GetPropertySetting(property, modelBoundKind); if (propertySetting != null) { return(propertySetting.Value != SelectExpandType.Disabled); } if (NavigationProperty != null) { OeModelBoundSettings entitySettings = modelBoundProvider.GetSettings((IEdmEntityType)property.DeclaringType); if (entitySettings != null && entitySettings.GetPropertySetting(property, modelBoundKind) == SelectExpandType.Disabled) { return(false); } } return(true); }
public SelectExpandClause Build(SelectExpandClause selectExpandClause, IEdmEntityType entityType) { return(selectExpandClause == null ? null : GetSelectItems(selectExpandClause, _modelBoundProvider.GetSettings(entityType))); }