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
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
14
14
protected abstract void ConfigureExetensionAttributeStorage ( EntityTypeBuilder < PersistedExtensionAttribute > builder ) ;
15
15
protected abstract void ConfigureSubscriptionStorage ( EntityTypeBuilder < PersistedSubscription > builder ) ;
16
16
protected abstract void ConfigureEventStorage ( EntityTypeBuilder < PersistedEvent > builder ) ;
17
+ protected abstract void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder ) ;
17
18
18
19
protected override void OnModelCreating ( ModelBuilder modelBuilder )
19
20
{
@@ -48,6 +49,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
48
49
ConfigureExetensionAttributeStorage ( extensionAttributes ) ;
49
50
ConfigureSubscriptionStorage ( subscriptions ) ;
50
51
ConfigureEventStorage ( events ) ;
52
+ ConfigureScheduledCommandStorage ( commands ) ;
51
53
}
52
54
53
55
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>
63
63
builder . ToTable ( "Event" ) ;
64
64
builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
65
65
}
66
+
67
+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
68
+ {
69
+ builder . ToTable ( "ScheduledCommand" ) ;
70
+ builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
71
+ }
66
72
}
67
73
}
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
60
60
builder . ToTable ( "Event" , _schemaName ) ;
61
61
builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
62
62
}
63
+
64
+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
65
+ {
66
+ builder . ToTable ( "ScheduledCommand" , _schemaName ) ;
67
+ builder . Property ( x => x . PersistenceId ) . ValueGeneratedOnAdd ( ) ;
68
+ }
63
69
}
64
70
}
65
71
Original file line number Diff line number Diff line change @@ -58,5 +58,11 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
58
58
builder . ToTable ( "Event" , "wfc" ) ;
59
59
builder . Property ( x => x . PersistenceId ) . UseIdentityColumn ( ) ;
60
60
}
61
+
62
+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
63
+ {
64
+ builder . ToTable ( "ScheduledCommand" , "wfc" ) ;
65
+ builder . Property ( x => x . PersistenceId ) . UseIdentityColumn ( ) ;
66
+ }
61
67
}
62
68
}
Original file line number Diff line number Diff line change @@ -52,5 +52,10 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
52
52
{
53
53
builder . ToTable ( "Event" ) ;
54
54
}
55
+
56
+ protected override void ConfigureScheduledCommandStorage ( EntityTypeBuilder < PersistedScheduledCommand > builder )
57
+ {
58
+ builder . ToTable ( "ScheduledCommand" ) ;
59
+ }
55
60
}
56
61
}
You can’t perform that action at this time.
0 commit comments