This commit is contained in:
2018-09-19 14:50:49 +00:00
parent 1b2881c968
commit 3a3894d532

View File

@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json.Linq;
using Microsoft.Extensions.Logging;
using Microsoft.EntityFrameworkCore;
using AyaNova.Util;
using AyaNova.Models;
@@ -34,8 +35,9 @@ namespace AyaNova.Biz
public static void ProcessDeletedObjectKeywords(AyContext ct, long objectID, AyaType objectType)
{
throw new System.NotImplementedException("Search::ProcessDeletedObjectKeywords NOT CODED YET");
//ProcessKeywords(ct, localeId, objectID, objectType, false, name, text);
//Be careful in future, if you put ToString at the end of each object in the string interpolation
//npgsql driver will assume it's a string and put quotes around it triggering an error that a string can't be compared to an int
ct.Database.ExecuteSqlCommand($"delete from asearchkey where objectid={objectID} and objecttype={(int)objectType}");
}