title: How to save null value to Mysql table DateTime field In C#
body: <p>I want to save null value for dateTime field if the DateEdit (dev express C# windows application control) editvalue is null.</p>
  
  <p>If dateEdit Control has a edit value it save the selected date.If its is null it save a default date But i want to save Null value if the dateEdit value is null.</p>
  
  <p>SAmple COde:
  i am using entity frame work,</p>
  
  <pre><code>Orders ord= new Orders();
  ord.OrderDate= dateEdit1.DateTime;**//here i want to save null value if the dateEdit control value is null** 
  Objcontext.Orders.AddObject(ord);
  Objcontext.SaveChanges();
  </code></pre>