HI...
I've implemeted this concatenation example by extending a base class but one of my fields is a DateTime. The runtime exception is a System.Data.SqlClient.SqlException that shows a "Syntax error converting datetime from character string" merror message.
Is there support that would allow me to cast the datetime to a string before ExOp.Add concatenates it? If not perhaps there is another way.
public class AssignmentPeriodTankAssignmentListTypedListCustom : AssignmentPeriodTankAssignmentListTypedList
{
public AssignmentPeriodTankAssignmentListTypedListCustom()
{
}
public override SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields BuildResultset()
{
ResultsetFields fields = base.BuildResultset() as ResultsetFields;
fields.Expand(1);
fields.DefineField(AssignmentPeriodTankFieldIndex.DueDate, 3, "AssignmentTitleAndDueDate", "", AggregateFunction.None);
Expression expAssignmentTitle = new Expression(" ", ExOp.Add, fields["AssignmentTitle"]);
Expression expAssignmentTitleAndDueDate = new Expression(fields["DueDate"], ExOp.Add, expAssignmentTitle);
fields["AssignmentTitleAndDueDate"].ExpressionToApply = expAssignmentTitleAndDueDate;
return fields;
}
}