Skip to content

Commit 30d7290

Browse files
Readme update
1 parent f9f8dc4 commit 30d7290

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ or add the following dependency to your `Package.swift`:
4040

4141
The example projects are a good starting point
4242

43-
- [Example_01](https://github.com/anconaesselmann/ProgrammaticCoreData/tree/main/Examples/Example_01) is a simple notes application without any relationships between entities:
43+
### Example_01
44+
45+
[Example_01](https://github.com/anconaesselmann/ProgrammaticCoreData/tree/main/Examples/Example_01) is a simple notes application without any relationships between entities:
4446

4547
We create our `Note` entity programmatically:
4648
```swift
@@ -71,7 +73,9 @@ let container = try await NSManagedObjectModel(Note.self)
7173

7274
See [NotesManager](https://github.com/anconaesselmann/ProgrammaticCoreData/blob/main/Examples/Example_01/Example_01/Managers/NotesManager.swift) for basic CRUD operations
7375

74-
- [Example_02](https://github.com/anconaesselmann/ProgrammaticCoreData/tree/main/Examples/Example_02) is a Book Archive app with a to-many relationship from an `Author` to their `Book`s and an inverse to-one relationship from a `Book` and it's `Author`:
76+
### Example_02
77+
78+
[Example_02](https://github.com/anconaesselmann/ProgrammaticCoreData/tree/main/Examples/Example_02) is a Book Archive app with a to-many relationship from an `Author` to their `Book`s and an inverse to-one relationship from a `Book` and it's `Author`:
7579

7680
We create an `Author` entity programmatically:
7781
```swift
@@ -188,6 +192,8 @@ let container = try await NSManagedObjectModel(
188192
).createContainer(name: "Books", location: .local)
189193
```
190194

195+
See [AuthorsManager](https://github.com/anconaesselmann/ProgrammaticCoreData/blob/main/Examples/Example_02/Example_02/Managers/AuthorsManager.swift) or [BooksManager](https://github.com/anconaesselmann/ProgrammaticCoreData/blob/main/Examples/Example_02/Example_02/Managers/BooksManager.swift) for simple CRUD operations.
196+
191197
If we didn't care about the order of books on our `Author` entity we would declare a `books` `Set` instead of an `Array`:
192198

193199
```Swift

0 commit comments

Comments
 (0)