mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user