Closed
Description
Same problem as in #1927
How To Fix IT:
The tt-script generates the following model:
[Column("DATA", DbType="LONG", DataType=DataType.Text, Length=0), Nullable]
public string Data { get; set; } // LONG
when i use following settings in my tt-script:
GenerateDataTypes = true;
GenerateLengthProperty = true;
GeneratePrecisionProperty = true;
GenerateScaleProperty = true;
GenerateDbTypes = true;
when i change the DataType im model manuell to
DataType=DataType.Long
the insert work without problems
Environment details
linq2db version: 2.9.2
Database Server: Oracle 12.1.0
Database Provider: Oracle.ManagedDataAccess.Core 2.19.31
Operating system: Windows 10
.NET Framework: .NET Core 2.2
Activity
MaceWindu commentedon Oct 18, 2019
As workaround you can add extra code to tt file to enumerate columns and update DataType property based on DbType value.
MaceWindu commentedon Oct 18, 2019
Something like this should help:
ldi0pathic commentedon Oct 18, 2019
works for me