Inconsistent DataType on XMLTYPE column
Posted: Tue 09 Oct 2018 08:00
I am using .Net Core 2.1 with Devart.Data.Oracle 9.6.597.
I Have following Entity and Configuration
On Oracle I have:
CREATE TABLE GUARANTEE_LETTER
(
XMLDATA XMLTYPE;
);
I have XMLTYPE column in database. When I try to insert data using Entity Framework Core 2.1 I am getting the error below.
I need urgent help.
Thanks
I Have following Entity and Configuration
Code: Select all
public class GuaranteeLetter : BaseEntity{
public string XmlData { get; set; }
}
Code: Select all
modelBuilder.Property<string>(x => x.XmlData).HasColumnType("XMLTYPE").ValueGeneratedNever();
CREATE TABLE GUARANTEE_LETTER
(
XMLDATA XMLTYPE;
);
I have XMLTYPE column in database. When I try to insert data using Entity Framework Core 2.1 I am getting the error below.
I Could not find solution or workaround for this issue.ORA-00932: inconsistent datatypes: expected - got NCLOB
I need urgent help.
Thanks