Hi,
Fyi: Using LLBLGen v5.9.1, generated target fw is net standard and database Oracle12C, also TypeConverter version is 5.9.1
We encountered an issue in version 5.9.1 that confuses us. Before the data extraction process (GetMultiAsDataTable), we fill in the column names ourselves as you can see below the data table where the data will be transferred. When the following code runs, the value we want to pull to the datatable is empty.
// Failed version
{
// setup the field
ResultsetFieldCollection newCollection = new ResultsetFieldCollection();
newCollection.Add(DhMuhSirketiKumpanyaFields.HizmtBrlkteFatKntrEdlckMi, "HizmetlerinBirlikteFatKontrolEdilecekMi");
DataTable dynamicList = new DataTable("resultingDataTable");
ResultsetFields _resultSet = new ResultsetFields(1);
_resultSet[0] = newCollection[0];
string dataColumnName = (newCollection[0].Alias.Equals("")) ? newCollection[0].Name : newCollection[0].Alias;
DataColumn dc = null;
if (newCollection[0].DataType != null) {
Type dataColumnType = getNotNullableType(newCollection[0].DataType);
dc = new DataColumn(dataColumnName, dataColumnType);
if (dataColumnType.Equals(typeof (String))) dc.MaxLength = newCollection[0].MaxLength;
} else {
dc = new DataColumn(dataColumnName, typeof (string));
}
dynamicList.Columns.Add(dc);
IPredicateExpression filtre = new PredicateExpression();
filtre.Add(DhMuhSirketiKumpanyaFields.Id == 101);
// fetch results
TypedListDAO dao = new TypedListDAO();
dao.GetMultiAsDataTable(_resultSet, dynamicList, 0, null, filtre, null, false, null, null, 0, 0);
}
When the following code runs, the datatable is created properly. And we can see the value in it.
// Working version
{
// setup the field
ResultsetFields fields = new ResultsetFields(1);
fields.DefineField(DhMuhSirketiKumpanyaFields.HizmtBrlkteFatKntrEdlckMi, 0, "HizmetlerinBirlikteFatKontrolEdilecekMi");
IPredicateExpression filtre = new PredicateExpression();
filtre.Add(DhMuhSirketiKumpanyaFields.Id == 101);
// fetch results
DataTable dynamicList = new DataTable("resultingDataTable");
TypedListDAO dao = new TypedListDAO();
dao.GetMultiAsDataTable(fields, dynamicList, 0, null, filtre, null, false, null, null, 0, 0);
}
You can also examine the working and failing version datatable images in the attached screenshot.
I would like your help in figuring out what is the problem is here.
Thanks.