title: DateOnly in model C# class mapping to Date in SQL Server with EntityFrameworkCore
body: <p>I have been scaffolded existing DB from SQL Server to my project with EntityFrameworkCore and it created models with</p>
  <blockquote>
  <p>public DateTime Birthday { get; set; }</p>
  </blockquote>
  <p>Now I have to change DateTime to DateOnly
  This exception is thrown when I'm trying to read Date (SQL Server) with model which has field</p>
  <blockquote>
  <p>public DateOnly Birthday { get; set; }</p>
  </blockquote>
  <blockquote>
  <p>Exception: The property is of type 'DateOnly' which is not supported by the
  current database provider. Either change the property CLR type, or
  ignore the property using the '[NotMapped]' attribute or by using
  'EntityTypeBuilder.Ignore' in 'OnModelCreating'.</p>
  </blockquote>
  <p>How can I use DateOnly struct from .NET 6.0 with SQL Server Date type?</p>