/// <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"); }
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"); }
/// <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"); }