TypedList custom column

Posts   
 
    
tprohas
User
Posts: 257
Joined: 23-Mar-2004
# Posted on: 30-May-2008 23:56:28   

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?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 31-May-2008 04:40:33   
David Elizondo | LLBLGen Support Team