diff --git a/AntSK/Program.cs b/AntSK/Program.cs index 2d8bb64..b3b440e 100644 --- a/AntSK/Program.cs +++ b/AntSK/Program.cs @@ -120,6 +120,8 @@ void InitDB(WebApplication app) _repository.GetDB().CodeFirst.InitTables(typeof(Kmss)); _repository.GetDB().CodeFirst.InitTables(typeof(KmsDetails)); _repository.GetDB().CodeFirst.InitTables(typeof(Users)); + //创建vector插件如果数据库没有则需要提供支持向量的数据库 + _repository.GetDB().Ado.ExecuteCommandAsync($"CREATE EXTENSION IF NOT EXISTS vector;"); } }