MetaDataMember.IsPersistent Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets whether this member is mapped to a column (or constraint).

Namespace:   System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public abstract bool IsPersistent { get; }

Property Value

Type: System.Boolean

true if this member is mapped to a column (or constraint); otherwise, false.

A class may have a combination of persistent and non-persistent members. Persistent members are mapped while non-persistent members are not mapped. A mapped class must have at least one persistent member.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top