protected override bool Initialize(IEdmVocabularyAnnotation annotation) { if (annotation == null || annotation.Value == null || annotation.Value.ExpressionKind != EdmExpressionKind.Record) { return(false); } IEdmRecordExpression record = (IEdmRecordExpression)annotation.Value; // Sortable Sortable = record.GetBoolean("Sortable"); // AscendingOnlyProperties AscendingOnlyProperties = record.GetCollectionPropertyPath("AscendingOnlyProperties"); // DescendingOnlyProperties DescendingOnlyProperties = record.GetCollectionPropertyPath("DescendingOnlyProperties"); // NonSortablePropeties NonSortableProperties = record.GetCollectionPropertyPath("NonSortableProperties"); return(true); }
protected override bool Initialize(IEdmVocabularyAnnotation annotation) { if (annotation == null || annotation.Value == null || annotation.Value.ExpressionKind != EdmExpressionKind.Record) { return(false); } IEdmRecordExpression record = (IEdmRecordExpression)annotation.Value; // Filterable Filterable = record.GetBoolean("Filterable"); // RequiresFilter RequiresFilter = record.GetBoolean("RequiresFilter"); // RequiredProperties RequiredProperties = record.GetCollectionPropertyPath("RequiredProperties"); // NonFilterableProperties NonFilterableProperties = record.GetCollectionPropertyPath("NonFilterableProperties"); return(true); }
/// <summary> /// Init the <see cref="CountRestrictionsType"/>. /// </summary> /// <param name="record">The input record.</param> public virtual void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Countable Countable = record.GetBoolean("Countable"); // NonCountableProperties NonCountableProperties = record.GetCollectionPropertyPath("NonCountableProperties"); // NonCountableNavigationProperties NonCountableNavigationProperties = record.GetCollectionPropertyPath("NonCountableNavigationProperties"); }
/// <summary> /// Init the <see cref="DeleteRestrictionsType"/>. /// </summary> /// <param name="record">The input record.</param> public void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Deletable Deletable = record.GetBoolean("Deletable"); // NonDeletableNavigationProperties NonDeletableNavigationProperties = record.GetCollectionPropertyPath("NonDeletableNavigationProperties"); // MaxLevels MaxLevels = (int?)record.GetInteger("MaxLevels"); // FilterSegmentSupported FilterSegmentSupported = record.GetBoolean("FilterSegmentSupported"); // TypecastSegmentSupported TypecastSegmentSupported = record.GetBoolean("TypecastSegmentSupported"); // Permissions Permissions = record.GetCollection <PermissionType>("Permissions"); // CustomHeaders CustomHeaders = record.GetCollection <CustomParameter>("CustomHeaders"); // CustomQueryOptions CustomQueryOptions = record.GetCollection <CustomParameter>("CustomQueryOptions"); // Description Description = record.GetString("Description"); // LongDescription LongDescription = record.GetString("LongDescription"); }
/// <summary> /// Init the <see cref="SortRestrictionsType"/>. /// </summary> /// <param name="record">The input record.</param> public void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Sortable Sortable = record.GetBoolean("Sortable"); // AscendingOnlyProperties AscendingOnlyProperties = record.GetCollectionPropertyPath("AscendingOnlyProperties"); // DescendingOnlyProperties DescendingOnlyProperties = record.GetCollectionPropertyPath("DescendingOnlyProperties"); // NonSortablePropeties NonSortableProperties = record.GetCollectionPropertyPath("NonSortableProperties"); }
/// <summary> /// Init the <see cref="FilterRestrictionsType"/>. /// </summary> /// <param name="record">The input record.</param> public void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Filterable Filterable = record.GetBoolean("Filterable"); // RequiresFilter RequiresFilter = record.GetBoolean("RequiresFilter"); // RequiredProperties RequiredProperties = record.GetCollectionPropertyPath("RequiredProperties"); // NonFilterableProperties NonFilterableProperties = record.GetCollectionPropertyPath("NonFilterableProperties"); // MaxLevels MaxLevels = record.GetInteger("MaxLevels"); // FilterExpressionRestrictions FilterExpressionRestrictions = record.GetCollection <FilterExpressionRestrictionType>("FilterExpressionRestrictions"); }
protected override bool Initialize(IEdmVocabularyAnnotation annotation) { if (annotation == null || annotation.Value == null || annotation.Value.ExpressionKind != EdmExpressionKind.Record) { return(false); } IEdmRecordExpression record = (IEdmRecordExpression)annotation.Value; // Countable Countable = record.GetBoolean("Countable"); // NonCountableProperties NonCountableProperties = record.GetCollectionPropertyPath("NonCountableProperties"); // NonCountableNavigationProperties NonCountableNavigationProperties = record.GetCollectionPropertyPath("NonCountableNavigationProperties"); return(true); }
public void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Expandable Expandable = record.GetBoolean("Expandable"); // StreamsExpandable StreamsExpandable = record.GetBoolean("StreamsExpandable"); // NonExpandableProperties NonExpandableProperties = record.GetCollectionPropertyPath("NonExpandableProperties"); // MaxLevels MaxLevels = record.GetInteger("MaxLevels"); }
/// <summary> /// Init the <see cref="UpdateRestrictionsType"/>. /// </summary> /// <param name="record">The input record.</param> public void Initialize(IEdmRecordExpression record) { Utils.CheckArgumentNull(record, nameof(record)); // Updatable Updatable = record.GetBoolean("Updatable"); // Upsertable Upsertable = record.GetBoolean("Upsertable"); // DeltaUpdateSupported DeltaUpdateSupported = record.GetBoolean("DeltaUpdateSupported"); // UpdateMethod UpdateMethod = record.GetEnum <HttpMethod>("UpdateMethod"); // FilterSegmentSupported FilterSegmentSupported = record.GetBoolean("FilterSegmentSupported"); // TypecastSegmentSupported TypecastSegmentSupported = record.GetBoolean("TypecastSegmentSupported"); // NonUpdatableNavigationProperties NonUpdatableNavigationProperties = record.GetCollectionPropertyPath("NonUpdatableNavigationProperties"); // MaxLevels MaxLevels = record.GetInteger("MaxLevels"); // Permissions Permissions = record.GetCollection <PermissionType>("Permissions"); // QueryOptions QueryOptions = record.GetRecord <ModificationQueryOptionsType>("QueryOptions"); // CustomHeaders CustomHeaders = record.GetCollection <CustomParameter>("CustomHeaders"); // CustomQueryOptions CustomQueryOptions = record.GetCollection <CustomParameter>("CustomQueryOptions"); // Description Description = record.GetString("Description"); // LongDescription LongDescription = record.GetString("LongDescription"); }