Hi everyone,
I need to know how fields are generated out of my Oracle database.
To be more clear, I'll give an example:
I have created the table customer with the following command:
CREATE TABLE COUNTRY(NAME VARCHAR2(32), NUMBER_OF_CITIZENS NUMBER);
After generating the code with LLBLGen, I've noticed that in order to get the 'NAME' field I should call countryEntity.Fields[0] and in order to get the 'NUMBER_OF_CITIZENS' field I should call countryEntity.Fields[1].
The CountryFieldIndex is respectively:
public enum CountryEntityIndex:int
{
Name,
NumberOfCitizens,
AmountOfFields
}
Now, is this a mandatory rule? The order of the fields in my Oracle database, as I have created, will alway be reflected in the LLBLGen code?