Assertion Exception


I have a table with a ID declared as integer Identity(Firebird).

If try to insert an empty record with no values I get a Exception "Aurelius.Sql.AnsiSqlGenerator.pas, line 403 on insert.".

Is this a normal behaviour?

Thanks in advance,

Omar Zelaya

Yes, that is expected behavior. If you have an entity with just an ID field, and that ID is auto-generated, then there is simply no fields to insert, thus the error. Your entity must have at least one field besides the one that is automatically generated.