/// <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);
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        /// <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);
        }