I have a Database table in which table i have a column that is char type. EF originally is not able to map char types.
I did a bit search and i found this and this but it does not solve my problem. Here is what i tried
modelBuilder.HasDefaultSchema("****");
modelBuilder.Entity<DistinaBase>()
.Property(e => e.ProprietaCompomente).IsFixedLength().HasMaxLength(1).HasColumnType("Char").IsUnicode(false);
And in my model i wrote this
[Column("PROPRIETA_COMPONENTE",TypeName ="Char")]
public string ProprietaCompomente { get; set; }
So my question is: Am i missing something in my way mapping char types in EF?