LLBLGen 2.5
Runtime: v2.0.50727
ASP.NET 2.0
I'm trying to add a custom column to a typed list which I think needs to use an Expression. I want to concatenate and format a number of fields and I can't figure out how to do it.
This is what the custom property looks like on an entity.
public string EventNameAndTime
{
get
{
string timeSpan = this.StartTime.ToString("MM/dd/yyyy") + " " + this.StartTime.ToString("hh:mm tt") + " - " + this.EndTime.ToString("hh:mm tt");
return this.EventName + " " + timeSpan;
}
}
Now how would I do this in a typed list?