Пример #1
0
        public string Serialize(object obj, IDatabaseDriver databaseDriver)
        {
            string str     = JSON.Serialize(obj);
            string escaped = databaseDriver.Escape(str, true);

            return(escaped);
        }
Пример #2
0
        public string Serialize(object obj, IDatabaseDriver driver)
        {
            string str = driver.Escape((string)obj, true);

            return("'" + str + "'");
        }