/// <summary> /// Converts a SingleData Row into a Json string. /// </summary> /// <param name="dt"></param> /// <returns></returns> public static string Jsonize(this DataRow dr) { var jsonizer = new PockItKnife.ToJson(); return jsonizer.ConvertDataRow(dr); }
/// <summary> /// Converts a DataTable into a Json string. /// </summary> /// <param name="dt"></param> /// <returns></returns> public static string Jsonize(this DataTable dt) { var jsonizer = new PockItKnife.ToJson(); return jsonizer.ConvertDataTable(dt); }