title: Odata Change to use System.DateTimeOffset or ignore this type by calling Ignore
body: <p>I have an odata error in:</p>
  
  <pre><code>  config.MapODataServiceRoute( "ODataRoute", "odata", builder.GetEdmModel());
  </code></pre>
  
  <blockquote>
    <p>Error: The type 'System.Nullable`1[[System.DateTime, mscorlib,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'
    of property 'NextBillingDate' in the 'Order' type is not a supported
    type. Change to use 'System.DateTimeOffset' or ignore this type by
    calling Ignore() on
    'System.Web.OData.Builder.ODataModelBuilder'. Parameter name:
    navigationProperty</p>
  </blockquote>
  
  <p>I've tried everything... from: </p>
  
  <pre><code>public class ZOrder
  {
      public Guid ID { get; set; }
  
      [Display(Name = "NexBillingDate", ResourceType = typeof(Resource))]
      [ScriptIgnoreAttribute]
      [IgnoreDataMember]
      public DateTime? NextBillingDate { get; set; }
  
      [NotMapped]
      public DateTimeOffset? NexBillingDateOffSet
      {
          get { return NextBillingDate; }
          set { NextBillingDate = Convert.ToDateTime(value); }
      }
  }
  </code></pre>
  
  <p>[IgnoreDataMember], [ScriptIgnoreAttribute], nothing works... I've also tried:</p>
  
  <pre><code>    public static void Register(HttpConfiguration config)
      {
  
          ODataModelBuilder builder = new ODataConventionModelBuilder();
  
          EntitySetConfiguration&lt;Client&gt; client = builder.EntitySet&lt;Client&gt;("Client_V1");
          EntitySetConfiguration&lt;Coupon&gt; cupon = builder.EntitySet&lt;Coupon&gt;("Coupon_V1");
          EntitySetConfiguration&lt;Order&gt; order =  builder.EntitySet&lt;Order&gt;("Orders_V1");
  
          client.EntityType.Ignore(x =&gt; x.CreatedOn);
          client.EntityType.Ignore(x =&gt; x.ModifyOn);
          client.EntityType.Ignore(x =&gt; x.LastLogin);
  
          cupon.EntityType.Ignore(x =&gt; x.Start);
          cupon.EntityType.Ignore(x =&gt; x.End);
  
          order.EntityType.Ignore(x =&gt; x.NextBillingDate);
          order.EntityType.Ignore(x =&gt; x.CreatedOn);
          order.EntityType.Ignore(x =&gt; x.ModifyOn);
  
  
          config.MapODataServiceRoute(
              routeName: "ODataRoute",
              routePrefix: "odata",
              model: builder.GetEdmModel());
  
      }
  </code></pre>
  
  <p>is .net ignoring order.EntityTyper() ??</p>