A generic type collection of persistent objects.
The type of elements in the collection.
XPCollection<T> class is a collection of persistent objects, much like the XPCollection. The only difference is that the
XPCollection<T> is a generic type collection, which contains persistent objects as specified by T, and as a result, the collection cannot be used as a data source at design time.
XPCollection<Person> persons = new XPCollection<Person>(session1, CriteriaOperator.Parse("FirstName = 'John'"));