LLBLGEN 4.0
Mysql 5
LLBLGEN Runtime Framework
C# Windows App.
Hi I need to sort 2 columns in the following way.
I need to sort by CreatedDate and ModifiedDate and fetch latest ONE record based on recent date which can be either CreatedDate OR ModifiedDate. Not sure how can i achieve this and what to alter in the following code.
DtableTitle.Clear();
var title = new TitleCollection();
Sort.Add(TitleFields.Createddate | SortOperator.Descending);
Sort.Add(TitleFields.Modifieddate | SortOperator.Descending);
title.GetMulti(null, 1, Sort, null, null, null, 0, 0);
var titleprojection =
EntityFields.ConvertToProjectors(title.EntityFactoryToUse.CreateFields());
title.DefaultView.CreateProjection(titleprojection, DtableTitle);
return DtableTitle;