In core 1.1 I used the TypeName = "sql_variant" attribute on the property and it worked.
[Column("tx_value", TypeName = "sql_variant")]
public string Value { get; set; }
I have migrated to core 2.1, started to return the error (The property 'EnterpriseDetails.Value' could not be mapped, because it is of type 'string' which is not a supported primitive type or a valid entity type. property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'). How to solve this?