title: OData 6.0 missing ODataEntityTypeSerializer
body: <p>I am trying to upgrade OData package (<code>Microsoft.AspNet.OData</code>) from v5.9 to v6.0 and my code break because I have a class that extends <code>ODataEntityTypeSerializer</code>.</p>
  
  <p>I search for that in object browser and it was removed. When I back to v5.9.1 it works.</p>
  
  <p>Is there a replacement for <code>ODataEntityTypeSerializer</code> in new 6.0 version or this is just a compatibility break?</p>
  
  <p>My derived class is a way to prevent <code>null</code> value serialization.
  I write the new provider to treat <code>null</code> based on <a href="https://stackoverflow.com/questions/24863111/how-to-ignore-null-values-while-serializing-odata-response#25538322">this response on SO</a>.</p>
  
  <pre><code> public class NullEntityTypeSerializer : ODataEntityTypeSerializer
      {
          public NullEntityTypeSerializer(ODataSerializerProvider serializerProvider)
              : base(serializerProvider)
          { }
  
          public override void WriteObjectInline(object graph, IEdmTypeReference expectedType, ODataWriter writer, ODataSerializerContext writeContext)
          {
              if (graph != null)
              {
                  base.WriteObjectInline(graph, expectedType, writer, writeContext);
              }
          }
      }
  </code></pre>
  
  <p><strong>UPDATE (jul/18):</strong> The problem with <code>SingleResult.Create()</code> that generate this work around was fixed in v7.0 and this is not necessary anymore. Check <a href="https://github.com/OData/WebApi/issues/170" rel="nofollow noreferrer">https://github.com/OData/WebApi/issues/170</a></p>