I'm mapping a property to the xml-type database using Migrations
.
public string Xml { get; set; }
this.Property(t => t.Xml).HasColumnName("Xml").HasColumnType("xml");
However, querying the class using Linq returns the error.
_context.PreListaPostagemLog.Where(p => p.IdPlp == null && !string.IsNullOrEmpty(p.Xml)).ToList();
Argument data type xml is invalid for argument 1 of len function.