Returns a newly-created mapping model to migrate data from the source to the destination model.
Original signature is '+ (NSMappingModel *)inferredMappingModelForSourceModel:(NSManagedObjectModel *)source destinationModel:(NSManagedObjectModel *)destination error:(NSError **)error'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSMappingModel InferredMappingModelForSourceModelDestinationModelError( NSManagedObjectModel source, NSManagedObjectModel destination, out NSError error )
Public Shared Function InferredMappingModelForSourceModelDestinationModelError ( _ source As NSManagedObjectModel, _ destination As NSManagedObjectModel, _ <OutAttribute> ByRef error As NSError _ ) As NSMappingModel
public: static NSMappingModel^ InferredMappingModelForSourceModelDestinationModelError( NSManagedObjectModel^ source, NSManagedObjectModel^ destination, [OutAttribute] NSError^% error )
Parameters
- source (NSManagedObjectModel)
- The source managed object model.
- destination (NSManagedObjectModel)
- The destination managed object model.
- error (NSError%)
- If a problem occurs, on return contains an NSInferredMappingModelError error that describes the problem.
Return Value
A newly-created mapping model to migrate data from the source to the destination model. If the mapping model can not be created, returns nil.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)