Changing to database schema to ensure separations of concerns instead of connection string
This commit is contained in:
@@ -8,6 +8,8 @@ public class MessagingDbContext(
|
||||
{
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.HasDefaultSchema("Messaging");
|
||||
|
||||
modelBuilder
|
||||
.Entity<Message>()
|
||||
.Property(c => c.CreatedAt)
|
||||
|
||||
Reference in New Issue
Block a user