Argument data type xml is invalid for argument 1 of Len Function

Asked

Viewed 206 times

1

I am mapping a property to the xml database using Migrations.

public string Xml { get; set; }

this.Property(t => t.Xml).HasColumnName("Xml").HasColumnType("xml");

However, when consulting 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.

1 answer

1


  • 1

    Thank you ! It worked perfectly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.