How do I list the properties of an entityset?

asp.net, c#, entity-framework

Solution

I found the answer link. The answer is

EntitySetBase es = container.BaseEntitySets.OfType<EntitySet>()
    .Where( eb=>eb.ElementType.Name ==s).FirstOrDefault(); 
foreach (EdmMember memberinfo in es.ElementType.Members.Where(m=>m.BuiltInTypeKind == BuiltInTypeKind.EdmProperty) )

Problem

How can I list the properties that an entityset has at runtime?

Original source