mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-15 05:33:31 +01:00
add constraints to Value.Optional and Value.Required native types
This commit is contained in:
@@ -86,7 +86,7 @@ public enum ValueContainer<O: CoreStoreObject> {
|
||||
```
|
||||
- Important: `Value.Required` properties are required to be stored properties. Computed properties will be ignored, including `lazy` and `weak` properties.
|
||||
*/
|
||||
public final class Required<V: ImportableAttributeType>: AttributeProtocol {
|
||||
public final class Required<V: ImportableAttributeType>: AttributeProtocol where V.QueryableNativeType: CoreDataNativeType {
|
||||
|
||||
/**
|
||||
Initializes the metadata for the property.
|
||||
@@ -231,7 +231,7 @@ public enum ValueContainer<O: CoreStoreObject> {
|
||||
```
|
||||
- Important: `Value.Optional` properties are required to be stored properties. Computed properties will be ignored, including `lazy` and `weak` properties.
|
||||
*/
|
||||
public final class Optional<V: ImportableAttributeType>: AttributeProtocol {
|
||||
public final class Optional<V: ImportableAttributeType>: AttributeProtocol where V.QueryableNativeType: CoreDataNativeType {
|
||||
|
||||
/**
|
||||
Initializes the metadata for the property.
|
||||
|
||||
Reference in New Issue
Block a user