File tree Expand file tree Collapse file tree 5 files changed +25
-0
lines changed
WorkflowCore.Persistence.EntityFramework/Services
WorkflowCore.Persistence.MySQL
WorkflowCore.Persistence.PostgreSQL
WorkflowCore.Persistence.SqlServer
WorkflowCore.Persistence.Sqlite Expand file tree Collapse file tree 5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public abstract class WorkflowDbContext : DbContext
1414 protected abstract void ConfigureExetensionAttributeStorage ( EntityTypeBuilder < PersistedExtensionAttribute > builder ) ;
1515 protected abstract void ConfigureSubscriptionStorage ( EntityTypeBuilder < PersistedSubscription > builder ) ;
1616 protected abstract void ConfigureEventStorage ( EntityTypeBuilder < PersistedEvent > builder ) ;
17+ protected abstract void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder ) ;
1718
1819 protected override void OnModelCreating ( ModelBuilder modelBuilder )
1920 {
@@ -48,6 +49,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
4849 ConfigureExetensionAttributeStorage ( extensionAttributes ) ;
4950 ConfigureSubscriptionStorage ( subscriptions ) ;
5051 ConfigureEventStorage ( events ) ;
52+ ConfigureScheduledCommandStorage ( commands ) ;
5153 }
5254
5355 protected override void OnConfiguring ( DbContextOptionsBuilder optionsBuilder )
Original file line number Diff line number Diff line change @@ -63,5 +63,11 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
6363 builder . ToTable ( "Event" ) ;
6464 builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
6565 }
66+
67+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
68+ {
69+ builder . ToTable ( "ScheduledCommand" ) ;
70+ builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
71+ }
6672 }
6773}
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
6060 builder . ToTable ( "Event" , _schemaName ) ;
6161 builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
6262 }
63+
64+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
65+ {
66+ builder . ToTable ( "ScheduledCommand" , _schemaName ) ;
67+ builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
68+ }
6369 }
6470}
6571
Original file line number Diff line number Diff line change @@ -58,5 +58,11 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
5858 builder . ToTable ( "Event" , "wfc" ) ;
5959 builder . Property ( x => x . PersistenceId ) . UseIdentityColumn ( ) ;
6060 }
61+
62+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
63+ {
64+ builder . ToTable ( "ScheduledCommand" , "wfc" ) ;
65+ builder . Property ( x => x . PersistenceId ) . UseIdentityColumn ( ) ;
66+ }
6167 }
6268}
Original file line number Diff line number Diff line change @@ -52,5 +52,10 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
5252 {
5353 builder . ToTable ( "Event" ) ;
5454 }
55+
56+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
57+ {
58+ builder . ToTable ( "ScheduledCommand" ) ;
59+ }
5560 }
5661}
You can’t perform that action at this time.
0 commit comments