正文html
CRL提供了JSON格式的導入和導出express
導出方法json
/// <summary> /// 導出爲json[基本方法] /// </summary> /// <param name="expression"></param> /// <returns></returns> public string ExportToJson(Expression<Func<TModel, bool>> expression)
導入方法緩存
/// <summary> /// 從json導入[基本方法] /// </summary> /// <param name="json"></param> /// <param name="delExpression">要刪除的數據</param> /// <param name="keepIdentity">是否保留自增主鍵</param> /// <returns></returns> public int ImportFromJson(string json, Expression<Func<TModel, bool>> delExpression, bool keepIdentity = false)