public void RegisterField(FieldInfo field) { var member = ReflectionHelper.GetMember(field); if (mType.GetRegisteredMember(member) == null) { mType.RegisterMember(member); } }
protected virtual void ApplyBaseRulesToType(IEngineConfigurationProviderLoaderContext context, IEngineConfigurationType type) { IEnumerable <IEngineConfigurationTypeMember> membersToApply = GetAllTypeHierarchyMembers(context.Configuration, type); foreach (var existingMemberConfig in membersToApply) { IEngineConfigurationTypeMember currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); if (currentMemberConfig == null) { type.RegisterMember(existingMemberConfig.Member); currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); currentMemberConfig.SetDatasources(existingMemberConfig.GetDatasources()); } } }
protected virtual void ApplyBaseRulesToType(IEngineConfigurationProviderLoaderContext context, IEngineConfigurationType type) { IEnumerable<IEngineConfigurationTypeMember> membersToApply = GetAllTypeHierarchyMembers(context.Configuration, type); foreach (var existingMemberConfig in membersToApply) { IEngineConfigurationTypeMember currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); if (currentMemberConfig == null) { type.RegisterMember(existingMemberConfig.Member); currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); currentMemberConfig.SetDatasources(existingMemberConfig.GetDatasources()); } } }
private void ApplyToType(IEngineConfigurationType type) { // Create the dependency stack IEnumerable<IEngineConfigurationTypeMember> membersToApply = GetAllTypeHierarchyMembers(mConfiguration, type); foreach (var existingMemberConfig in membersToApply) { IEngineConfigurationTypeMember currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); if (currentMemberConfig == null) { type.RegisterMember(existingMemberConfig.Member); currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); currentMemberConfig.SetDatasources(existingMemberConfig.GetDatasources()); } } }
private void ApplyToType(IEngineConfigurationType type) { // Create the dependency stack IEnumerable <IEngineConfigurationTypeMember> membersToApply = GetAllTypeHierarchyMembers(mConfiguration, type); foreach (var existingMemberConfig in membersToApply) { IEngineConfigurationTypeMember currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); if (currentMemberConfig == null) { type.RegisterMember(existingMemberConfig.Member); currentMemberConfig = type.GetRegisteredMember(existingMemberConfig.Member); currentMemberConfig.SetDatasources(existingMemberConfig.GetDatasources()); } } }
private void ApplyToType(IEngineConfigurationType type) { var typeProviders = mConfigurationProvider.GetConfigurationTypes().Where(x => x.GetConfigurationType() == type.RegisteredType); foreach (var typeProvider in typeProviders) { foreach (var member in typeProvider.GetConfigurationMembers()) { EngineTypeMember typeMember = member.GetConfigurationMember(); if (type.GetRegisteredMember(typeMember) == null) { type.RegisterMember(typeMember); } } } }
private void ApplyToType(IEngineConfigurationType type) { var typeProviders = mConfigurationProvider.GetConfigurationTypes().Where(x => x.GetConfigurationType() == type.RegisteredType); foreach (var typeProvider in typeProviders) { foreach (var member in typeProvider.GetConfigurationMembers()) { EngineTypeMember typeMember = member.GetConfigurationMember(); if (type.GetRegisteredMember(typeMember) == null) { type.RegisterMember(typeMember); } } } }