XPClassInfo Class
Serves as a base for classes that provide metadata information for a class.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v18.2.dll
Declaration
public abstract class XPClassInfo :
XPTypeInfo,
IXPClassInfoProvider,
IXPDictionaryProvider
Related API Members
The following members return XPClassInfo objects:
Example
The following sample code shows how to create custom fields using the XPClassInfo.CreateMember method.
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
// ...
XPClassInfo customerClassInfo = Session.DefaultSession.GetClassInfo(typeof(Customer));
customerClassInfo.CreateMember("Name", typeof(string));
customerClassInfo.CreateMember("CompanyName", typeof(string));
customerClassInfo.CreateMember("Orders", typeof(XPCollection), true,
new AssociationAttribute("CustomerOrders", typeof(Order)), new AggregatedAttribute());
Inheritance
See Also