I have a controller:
[HttpPost]
public ActionResult Create(Auction auction)
{
var db = new EbuyDataContext();
db.Auctions.Add(auction);
db.SaveCh
Does your columns with datetime2 datatype accepts null values. If not then you might get this error when you are not assigning a value to these columns.
By default the CodeFirst will make non nullable columns if your model does not use nullable properties. Try converting these properties to nullable datetime.