title: EF Core-2-2 HasConversion Char(1) to bool
body: <p>I'm converting an old SQL Server DB design to EF Core 2.21. The DB design is not practical to change. One field is a Char(1) with 'X' for true. I've added a .HasConversion however it is not working. The values are not converted and after a change and trying to save I get "Object of type 'System.Boolean' cannot be converted to type 'System.String". I am referencing <a href="https://docs.microsoft.com/en-us/ef/core/modeling/value-conversions" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/ef/core/modeling/value-conversions</a> where it says conversions can be from a value of one type to a value of another type. What am I missing? Can this be done?</p>
  
  <pre><code>entity.Property(e =&gt; e.LockNote)
      .HasColumnName("LOCK_NOTE")
      .HasMaxLength(1)
      .IsUnicode(false)
      .HasConversion(v =&gt; v == "X" ? true : false, v =&gt; v == true ? "X" : "");
  </code></pre>