Bookstore.ReviewsSearcher.ReviewsSearcherUI.LogQuery C# (CSharp) 메소드

LogQuery() 정적인 개인적인 메소드

static private LogQuery ( LogsContext context, string queryXml ) : void
context Bookstore.Logs.Data.LogsContext
queryXml string
리턴 void
        static void LogQuery(LogsContext context, string queryXml)
        {
            SearchLog newLog = new SearchLog();
            newLog.Date = DateTime.Now;
            newLog.QueryXml = queryXml;

            context.SearchLogs.Add(newLog);
            context.SaveChanges();
        }