mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-22 09:29:18 +01:00
WIP: documentation
This commit is contained in:
@@ -29,8 +29,21 @@ import Foundation
|
||||
|
||||
// MARK: - LegacyXcodeDataModelSchema
|
||||
|
||||
/**
|
||||
The `LegacyXcodeDataModelSchema` describes models loaded directly from an existing `NSManagedObjectModel`. It is not advisable to continue using this model as its metadata are not available to CoreStore.
|
||||
*/
|
||||
public final class LegacyXcodeDataModelSchema: DynamicSchema {
|
||||
|
||||
/**
|
||||
Initializes a `LegacyXcodeDataModelSchema` from an `NSManagedObjectModel`.
|
||||
```
|
||||
CoreStore.defaultStack = DataStack(
|
||||
LegacyXcodeDataModelSchema(modelName: "MyAppV1", model: model)
|
||||
)
|
||||
```
|
||||
- parameter modelName: the model version, typically the file name of an *.xcdatamodeld file (without the file extension)
|
||||
- parameter model: the `NSManagedObjectModel`
|
||||
*/
|
||||
public required init(modelName: ModelVersion, model: NSManagedObjectModel) {
|
||||
|
||||
self.modelVersion = modelName
|
||||
|
||||
Reference in New Issue
Block a user