Back to Devexpress

XPClassInfo.Members Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-a7fff7e6.md

latest3.0 KB
Original Source

XPClassInfo.Members Property

Gets a collection of XPMemberInfo objects that are owned by the current persistent class metadata information and all its ancestors.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public ICollection<XPMemberInfo> Members { get; }
vb
Public ReadOnly Property Members As ICollection(Of XPMemberInfo)

Property Value

TypeDescription
ICollection<XPMemberInfo>

An array of XPMemberInfo objects that are owned by the current persistent class metadata information and all its ancestors.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Members property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-implement-odata4-service-with-xpo-netcore/CS/ODataService/Models/SingletonEdmModel.cs#L67

csharp
if(classInfo.KeyProperty is ReflectionFieldInfo) {
    foreach(XPMemberInfo mi in classInfo.Members) {
        if(mi.IsAliased) {

XPO_how-to-implement-odata4-service-with-xpo/CS/ODataService/App_Start/WebApiConfig.cs#L80

csharp
if(classInfo.KeyProperty is ReflectionFieldInfo) {
    foreach(XPMemberInfo mi in classInfo.Members) {
        if(mi.IsAliased) {

xpo-json-serialization/CS/XpoSerialization/JsonConverters.cs#L22

csharp
writer.WriteStartObject();
foreach(XPMemberInfo member in classInfo.Members) {
    if(CanSerialize(member)) {

See Also

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace