Returns the mapping model to translate data from the source to the destination model.
Original signature is '+ (NSMappingModel *)mappingModelFromBundles:(NSArray *)bundles forSourceModel:(NSManagedObjectModel *)sourceModel destinationModel:(NSManagedObjectModel *)destinationModel'
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSMappingModel MappingModelFromBundlesForSourceModelDestinationModel( NSArray bundles, NSManagedObjectModel sourceModel, NSManagedObjectModel destinationModel )
Public Shared Function MappingModelFromBundlesForSourceModelDestinationModel ( _ bundles As NSArray, _ sourceModel As NSManagedObjectModel, _ destinationModel As NSManagedObjectModel _ ) As NSMappingModel
public: static NSMappingModel^ MappingModelFromBundlesForSourceModelDestinationModel( NSArray^ bundles, NSManagedObjectModel^ sourceModel, NSManagedObjectModel^ destinationModel )
Parameters
- bundles (NSArray)
- An array of bundles in which to search for mapping models.
- sourceModel (NSManagedObjectModel)
- The managed object model for the source store.
- destinationModel (NSManagedObjectModel)
- The managed object model for the destination store.
Return Value
Returns the mapping model to translate data from sourceModel to destinationModel. If a suitable mapping model cannot be found, returns nil.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)