/// <summary> /// Applies access rights to entity sets /// </summary> /// <param name="configuration">Data service configuration instance with access right info.</param> internal void ApplyConfiguration(DataServiceConfiguration configuration) { Debug.Assert(configuration != null, "configuration != null"); this.PopulateMetadataForUserSpecifiedTypes(configuration.GetKnownTypes(), this.TypeCache, this.ChildTypesCache, this.EntitySets.Values); this.CheckConfigurationConsistency(this.instance, configuration); }
internal void ApplyConfiguration(DataServiceConfiguration configuration) { if (this.metadataRequiresInitialization) { this.PopulateMetadataForUserSpecifiedTypes(configuration.GetKnownTypes(), this.TypeCache, this.ChildTypesCache, this.EntitySets.Values); if (configuration.DataServiceBehavior.UseMetadataKeyOrderForBuiltInProviders) { foreach (ResourceSet set in this.EntitySets.Values) { set.UseMetadataKeyOrder = true; } } this.CheckConfigurationConsistency(configuration); } }