last ...
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using xAiApi.AI.Models.Entities;
|
||||
@@ -8,6 +7,13 @@ namespace xAiApi.AI.Configuration.Entities
|
||||
public class XAiMessageConfiguration : IEntityTypeConfiguration<XAiMessage>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<XAiMessage> builder)
|
||||
{ }
|
||||
{
|
||||
//
|
||||
builder
|
||||
.HasOne(x => x.Conversation)
|
||||
.WithMany(x => x.Messages)
|
||||
.HasForeignKey(x => x.ConversationId)
|
||||
.OnDelete(DeleteBehavior.NoAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user