If you want to have an entity in your assembly that is not managed by OpenAccess, you should just not map it e.g. if you are using Fluent API you should not create a MappingConfiguration object for it. For example, if you look into the following simple mapping example:
FluentModelMetadataSource : FluentMetadataSource
List<MappingConfiguration> configurations =
MappingConfiguration<Person> personConfiguration =
Id = p.Id,
FirstName = p.FirstName,
LastName = p.LastName,
HomeAddress = p.Address
personConfiguration.HasProperty( p => p.Id ).IsIdentity( KeyGenerator.Autoinc );
configurations.Add( personConfiguration );
So, to map a certain type, you need to create a MappingConfiguration for it in the PrepareMapping() method override. You should do this for all types that you want to have persisted by OpenAccess and if you want to have a class transient, you should just not map it in this way and it will be handled as transient by default.
If, I have misunderstood your requirement and what your are asking for is to have a class partially mapped, which would mean to have part of its properties
as transient and the rest of them mapped to columns in the database, then the Fluent API has the AsTransient()
method call on the PropertyConfiguration object.
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!