示例#1
0
 /// <summary>
 /// 创建华为备份文件实例
 /// </summary>
 /// <param name="path"></param>
 /// <param name="error"></param>
 /// <returns></returns>
 public static HbFile Create(string path, Action <ErrorResult> error)
 {
     try
     {
         var context = SQLiteFactory.NewContext(path);
         var file    = new HbFile(context, error);
         return(file);
     }
     catch (Exception e)
     {
         Logger.Error(e);
         return(null);
     }
 }