MonobjcMonobjc Documented Class Library
MigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError Method (sourceURL, sStoreType, sOptions, mappings, dURL, dStoreType, dOptions, error)
NamespacesMonobjc.CoreDataNSMigrationManagerMigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError(NSURL, NSString, NSDictionary, NSMappingModel, NSURL, NSString, NSDictionary, NSError%)

Migrates of the store at a given source URL to the store at a given destination URL, performing all of the mappings specified in a given mapping model.

Original signature is '- (BOOL)migrateStoreFromURL:(NSURL *)sourceURL type:(NSString *)sStoreType options:(NSDictionary *)sOptions withMappingModel:(NSMappingModel *)mappings toDestinationURL:(NSURL *)dURL destinationType:(NSString *)dStoreType destinationOptions:(NSDictionary *)dOptions error:(NSError **)error'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool MigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError(
	NSURL sourceURL,
	NSString sStoreType,
	NSDictionary sOptions,
	NSMappingModel mappings,
	NSURL dURL,
	NSString dStoreType,
	NSDictionary dOptions,
	out NSError error
)
Public Overridable Function MigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError ( _
	sourceURL As NSURL, _
	sStoreType As NSString, _
	sOptions As NSDictionary, _
	mappings As NSMappingModel, _
	dURL As NSURL, _
	dStoreType As NSString, _
	dOptions As NSDictionary, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool MigrateStoreFromURLTypeOptionsWithMappingModelToDestinationURLDestinationTypeDestinationOptionsError(
	NSURL^ sourceURL, 
	NSString^ sStoreType, 
	NSDictionary^ sOptions, 
	NSMappingModel^ mappings, 
	NSURL^ dURL, 
	NSString^ dStoreType, 
	NSDictionary^ dOptions, 
	[OutAttribute] NSError^% error
)
Parameters
sourceURL (NSURL)
The location of an existing persistent store. A store must exist at this URL.
sStoreType (NSString)
The type of store at sourceURL (see NSPersistentStoreCoordinator for possible values).
sOptions (NSDictionary)
A dictionary of options for the source (see NSPersistentStoreCoordinator for possible values).
mappings (NSMappingModel)
The mapping model to use to effect the migration.
dURL (NSURL)
The location of the destination store.
dStoreType (NSString)
The type of store at dURL (see NSPersistentStoreCoordinator for possible values).
dOptions (NSDictionary)
A dictionary of options for the destination (see NSPersistentStoreCoordinator for possible values).
error (NSError%)
If an error occurs during the validation or migration, upon return contains an NSError object that describes the problem.
Return Value
YES if the migration proceeds without errors during the compatibility checks or migration, otherwise NO.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)