Пример #1
0
        internal void Configure(DynamoDBContextSection section)
        {
            if (section != null && section.ElementInformation.IsPresent)
            {
                TableNamePrefix = section.TableNamePrefix;

                InternalSDKUtils.FillDictionary(section.TypeMappings.Items, t => t.Type, t => new TypeMapping(t), TypeMappings);
                InternalSDKUtils.FillDictionary(section.TableAliases.Items, t => t.FromTable, t => t.ToTable, TableAliases);
            }
        }
Пример #2
0
 internal TypeMapping(TypeMappingElement mapping)
     : this(mapping.Type, mapping.TargetTable)
 {
     InternalSDKUtils.FillDictionary(mapping.PropertyConfigs.Items, p => p.Name, p => new PropertyConfig(p), PropertyConfigs);
 }