internal void Append(string prefix, TypeUsage type)
        {
            if (type == null)
            {
                return;
            }
            InitializerMetadata initializerMetadata;

            if (InitializerMetadata.TryGetInitializerMetadata(type, out initializerMetadata))
            {
                initializerMetadata.AppendColumnMapKey(this);
            }
            this.Append(prefix, type.EdmType);
        }
示例#2
0
 internal void Append(string prefix, TypeUsage type)
 {
     if (null != type)
     {
         // LINQ has anonymous types that aren't going to show up in our
         // metadata workspace, and we don't want to hydrate a record when
         // we need an anonymous type.  LINQ solves this by annotating the
         // edmType with some additional information, which we'll pick up
         // here.
         InitializerMetadata initializer;
         if (InitializerMetadata.TryGetInitializerMetadata(type, out initializer))
         {
             initializer.AppendColumnMapKey(this);
         }
         Append(prefix, type.EdmType);
     }
 }