public string Serialize(object obj, IDatabaseDriver databaseDriver) { string str = JSON.Serialize(obj); string escaped = databaseDriver.Escape(str, true); return(escaped); }
public string Serialize(object obj, IDatabaseDriver driver) { string str = driver.Escape((string)obj, true); return("'" + str + "'"); }