Applied to persistent properties and fields. When applied, specifies that the target property or field value can be loaded from the database but should not be saved (should not be included in the INSERT and UPDATE SQL statements).
auto-increment database columns that are not primary keys (for example, rowversion).
You can decorate a property/field with the FetchOnlyAttribute directly in code or using the Data Model Designer. The designer applies this attribute when you enable the Fetch Only option. In the metadata (see XPTypeInfo), the XPMemberInfo.IsFetchOnly property returns True for members with this attribute.
In a NestedUnitOfWork, the attribute's target property/field value is not passed to the parent session.