Ejemplo n.º 1
0
        internal void Configure(DynamoDBContextSection section)
        {
            if (section.ElementInformation.IsPresent)
            {
                TableNamePrefix = section.TableNamePrefix;

                AWSSDKUtils.FillDictionary(section.TypeMappings.Items, t => t.Type, t => new TypeMapping(t), TypeMappings);
                AWSSDKUtils.FillDictionary(section.TableAliases.Items, t => t.FromTable, t => t.ToTable, TableAliases);
            }
        }
Ejemplo n.º 2
0
 internal TypeMapping(TypeMappingElement mapping)
     : this(mapping.Type, mapping.TargetTable)
 {
     AWSSDKUtils.FillDictionary(mapping.PropertyConfigs.Items, p => p.Name, p => new PropertyConfig(p), PropertyConfigs);
 }