Thank you for your response.
It's strange. I tried to drop the trigger.
Without tigger (ORA-01400: cannot insert NULL into ):
SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException was unhandled
Message="An exception was caught during the execution of an action query: ORA-01400: cannot insert NULL into (\"CBS_OWN\".\"CONFIG\".\"KEY_ID\")\n. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception."
Source="SD.LLBLGen.Pro.ORMSupportClasses.NET20"
RuntimeBuild="11072006"
RuntimeVersion="2.0.0.0"
QueryExecuted="\r\n\tQuery: INSERT INTO \"CBS_OWN\".\"CONFIG\" (\"KEY_ID\", \"KEY_NAME\", \"KEY_VALUE\") VALUES (:KeyId1, :KeyName2, :KeyValue3)\r\n\tParameter: :KeyId1 : VarNumeric. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: <undefined value>.\r\n\tParameter: :KeyName2 : AnsiString. Length: 1. Precision: 0. Scale: 0. Direction: Input. Value: \"q\".\r\n\tParameter: :KeyValue3 : AnsiString. Length: 1.
Console.WriteLine(configEntity.Fields["KeyId"].IsIdentity);
True
Generated code with sequence(CBS_OWN.CONFIG_SEQ) :
/// <summary>Inits ConfigEntity's mappings</summary>
private void InitConfigEntityMappings()
{
base.AddElementMapping( "ConfigEntity", "xxxx", @"CBS_OWN", "CONFIG", 3 );
base.AddElementFieldMapping( "ConfigEntity", "KeyId", "KEY_ID", false, (int)OracleType.Number, 22, 0, 38, true, "CBS_OWN.CONFIG_SEQ", null, typeof(System.Decimal), 0 );
base.AddElementFieldMapping( "ConfigEntity", "KeyName", "KEY_NAME", true, (int)OracleType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
base.AddElementFieldMapping( "ConfigEntity", "KeyValue", "KEY_VALUE", true, (int)OracleType.VarChar, 1000, 0, 0, false, "", null, typeof(System.String), 2 );
}
However on real system I can't drop the trigger. I have to use table with the trigger.
Is there an another way?
Thank you
Jiri Ceska