title: Inserting data with Dapper with DateTime2 throws SqlDateTime overflow exception
body: <p>If I have an object such as:</p>
  
  <pre><code>public class Person
  {
    public int Id {get;set;}
    public string Name {get;set;}
    public DateTime DOB {get;set;}
  }
  </code></pre>
  
  <p>If I set the name on my object and DOB is DateTime.MinValue and use Dapper like so:</p>
  
  <pre><code>INSERT INTO [Person] ([Person].[Name], [Person].[DOB]) VALUES (@Name, @DOB);
  SELECT CAST(SCOPE_IDENTITY()  AS BIGINT) AS [Id]
  
  connection.Query&lt;long&gt;(sql, entity);
  </code></pre>
  
  <p>This throws <code>SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.</code></p>
  
  <p>However if I execute the SQL in SQL Management Studio with a string version '0001-01-01 00:00:00' it inserts into the db fine.</p>
  
  <p>Any ideas how to get this to work?</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <pre><code>CREATE TABLE [dbo].[Person](
      [Id] [int] IDENTITY(1,1) NOT NULL,
      [DOB] [datetime2](7) NULL,
      [Name] [nvarchar](20) NOT NULL,
   CONSTRAINT [PK_Referrer_Referee] PRIMARY KEY CLUSTERED 
  (
      [Id] ASC
  )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
  ) ON [PRIMARY]
  GO
  </code></pre>