Skip to content

Commit cd90230

Browse files
committed
Added comments [skip ci]
1 parent d8747dd commit cd90230

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Pgvector.EntityFrameworkCore/VectorTypeMappingSourcePlugin.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public class VectorTypeMappingSourcePlugin : IRelationalTypeMappingSourcePlugin
66
{
77
public RelationalTypeMapping? FindMapping(in RelationalTypeMappingInfo mappingInfo)
88
{
9+
// for scaffolding
910
if (mappingInfo.ClrType == null)
1011
{
1112
return (mappingInfo.StoreTypeNameBase ?? mappingInfo.StoreTypeName) switch
@@ -17,6 +18,7 @@ public class VectorTypeMappingSourcePlugin : IRelationalTypeMappingSourcePlugin
1718
};
1819
}
1920

21+
// for entities
2022
return mappingInfo.ClrType switch
2123
{
2224
var t when t == typeof(Vector) => new VectorTypeMapping(mappingInfo.StoreTypeName ?? "vector", typeof(Vector), mappingInfo.Size),

0 commit comments

Comments
 (0)