internal EntitySetTranslator(StorageEntitySetMapping setMapping)
 {
     Debug.Assert(null != setMapping && null != setMapping.ModificationFunctionMappings &&
         0 < setMapping.ModificationFunctionMappings.Count, "set mapping must exist and must specify function mappings");
     m_typeMappings = new Dictionary<EntityType, StorageEntityTypeModificationFunctionMapping>();
     foreach (StorageEntityTypeModificationFunctionMapping typeMapping in setMapping.ModificationFunctionMappings)
     {
         m_typeMappings.Add(typeMapping.EntityType, typeMapping);
     }
 }
 /// <summary>
 /// Initialize a translator for the given entity set mapping.
 /// </summary>
 /// <param name="setMapping">Entity set mapping.</param>
 /// <returns>Translator.</returns>
 internal static ModificationFunctionMappingTranslator CreateEntitySetTranslator(
     StorageEntitySetMapping setMapping)
 {
     return new EntitySetTranslator(setMapping);
 }