When updating the following table with the statement in .NET 5 application
TEMPLATES1 t = db.TEMPLATES1.FirstOrDefault(i=>i.ID > 0);
t.ID = t.ID;
db.TEMPLATES1.Update(t);
db.SaveChanges();
(Looks like .NET 5 provider is having problems with underscores in the field name )
I get this error message,
IBM.Data.Db2.DB2Exception (0x80004005): ERROR [428HV] [IBM][DB2/AIX64] SQL20521N Error occurred processing a conditional compilation directive near "_". Reason code="7".
at IBM.Data.Db2.DB2Connection.HandleError(IntPtr hHandle, SQL_HANDLE hType, RETCODE retcode)
at IBM.Data.Db2.DB2Command.ExecuteNonQueryObject(Boolean skipInitialValidation)
at IBM.Data.Db2.DB2Command.ExecuteNonQueryObject()
at IBM.Data.Db2.DB2Command.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
This is the table.
create table PRINT.TEMPLATES1
(
ID INTEGER generated by default as identity(minvalue 0 no cache)
constraint CC1309199898745
primary key,
DOCTYPE GRAPHIC(4) not null,
AC10 GRAPHIC(10) not null,
URCD VARCHAR(2) default '' not null,
TEMPLATENAME VARCHAR(256) not null,
KEYFIELDNAME VARCHAR(100),
REPORTTITLE VARCHAR(256),
COMMENTS VARCHAR(1000),
EMAIL_TO_CUST GRAPHIC(1) default 'Y' not null,
FAX_TO_CUST GRAPHIC(1) default 'Y' not null,
INCLUDE_BARCODE GRAPHIC(1) default 'N',
BARCODE_SIZE SMALLINT default 0,
CUSTOMER_NUMBER DECIMAL(8) default 0 not null,
SHIPTO_NUMBER DECIMAL(8) default 0 not null,
ATTACHMENT VARCHAR(1) default 'N',
DOC_FORMAT GRAPHIC(3) default 'PDF',
ENABLED CHARACTER(1) default 'Y' not null,
RESETVALUE DECIMAL(5) default 7,
COPYFLAG VARCHAR(1) default 'Y' not null,
COMPANY_NUMBER VARCHAR(5) default '00000',
EXT_TEMPLATE VARCHAR(256),
BARCODE_NUM VARCHAR(25),
EXT_DOCTYPE VARCHAR(10),
EXT_AC10 VARCHAR(10),
FLAG_REPRINT CHARACTER(1) default 'N',
COPIES INTEGER default 0,
LINK INTEGER default 0,
BRANCH_PLANT CHARACTER(12) default '',
PRINTEXTALWAYS CHARACTER(1) default 'N' not null,
ONHOLD CHARACTER(1) default 'N',
ARCHIVED CHARACTER(1) default 'N' not null,
MOT GRAPHIC(4)
);
------------------------------
Peter Czurak
------------------------------
Original Message:
Sent: Fri January 22, 2021 04:50 AM
From: Jean-Pierre Nulens
Subject: EF Core .Net 5 provider
Is the release postponed? We are already the 3th week of January.
------------------------------
Jean-Pierre Nulens
Original Message:
Sent: Tue December 01, 2020 11:06 PM
From: Hosathota Vishwanatha
Subject: EF Core .Net 5 provider
Hi,
we are in the final stages of testing and plan to release the EF Core 5 provider by end of this month or first week of January. We may release a beta version before that if we find it to be at stable state. It will be released through NuGet and will be notified in the forum here.
Thanks
Vishwa
------------------------------
Hosathota Vishwanatha
Original Message:
Sent: Tue December 01, 2020 03:38 AM
From: Jean-Pierre Nulens
Subject: EF Core .Net 5 provider
When is the EF Core .Net 5 provider available?
------------------------------
Jean-Pierre Nulens
------------------------------
#Db2