此代码引发错误
输入字符串的格式不正确
在Visual Studio中;但是当我直接在SQLite上执行它时,它可以工作:
context.Database.ExecuteSqlCommand("INSERT INTO Subjects(ID, Title, Title_alt,NameTranslation)" +
"SELECT DISTINCT SubjectId, Name_alt,Name ,'{''en'':''' || Name || '''}&{''ar'':''' || Name_alt || '''} ' as NameTranslation FROM Atta_Subject");
问题出在
'{''en'':''' || Name || '''}&{''ar'':''' || Name_alt || '''} ' as NameTranslation
但我不知道这是什么