File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ title: Models
33---
44
55Models in Krescent are the core components of the framework yet relatively loosely defined. In essence, they are
6- end-user flavored event handlers with additional syntactic sugar. While there is base ` EventModelBase ` , you will mostly
6+ end-user flavored event handlers with additional syntactic sugar. While there is a base ` EventModelBase ` , you will
7+ mostly
78be using flavors of the ` ReadModelBase ` and the ` WriteModelBase ` classes, so let's take a look at them.
89
910## Read Model
@@ -91,8 +92,8 @@ entity id or related entity ids, similar to [Dynamic Consistency Boundaries](htt
9192#### Example Write Model
9293
9394``` kotlin
95+ // [!code focus:8]
9496class BookWriteModel (
95- // [!code focus:8]
9697 val bookId : String ,
9798 val lockProvider : KrescentLockProvider ,
9899) : WriteModelBase(" book_write" , 1 , bookstoreEventCatalog, configure = {
You can’t perform that action at this time.
0 commit comments