The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PersistentAttribute.MapTo Property

Gets the name of the table or column to which to map a class or a property/field.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public string MapTo { get; }
Public ReadOnly Property MapTo As String
public string MapTo { get; }
Public ReadOnly Property MapTo As String

Property Value

Type Description
String

A String value which specifies the name of the table or column to which to map a class or property/field.

Property Value

Type Description
String

A String value which specifies the name of the table or column to which to map a class or property/field.

Remarks

When storing descendant classes to the table of their parent class (see MapInheritanceAttribute), make sure that properties of different data types are not mapped to the same column.

To map a class to a table in a specific schema, prefix the table name with the schema name. For example: "MySchema.MyTable". Note that the specified schema name must already exist in the database. Also, some connection providers allow you to specify a common schema name for all classes in the ObjectsOwner field of the connection provider. This field is implemented by SQL Server, SQL Server CE, Oracle, PostreSQL, and DB2 connection providers.

See Also