Reorder method calls for Embedding property

Swapped the order of `IsRequired` and `HasColumnType("vector(1536)")` method calls for the `Embedding` property in the `ApplicationDbContext` class. This change improves readability and adheres to a preferred coding convention without altering functionality.
This commit is contained in:
Marco Minerva
2024-11-05 17:18:48 +01:00
parent dc0b557010
commit c18a6b4e03
@@ -39,8 +39,8 @@ public class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options
entity.Property(e => e.Id).ValueGeneratedOnAdd();
entity.Property(e => e.Content).IsRequired();
entity.Property(e => e.Embedding)
.IsRequired()
.HasColumnType("vector(1536)");
.HasColumnType("vector(1536)")
.IsRequired();
entity.HasOne(d => d.Document).WithMany(p => p.Chunks)
.HasForeignKey(d => d.DocumentId)