/// <summary> /// 新建一个Folder记录,不包容任何文件 /// </summary> /// <param name="dataInfoObject"></param> /// <returns></returns> public int Create(IDataInfo dataInfoObject) { if (dataInfoObject == null || (dataInfoObject as FolderInfo) == null) { return(0); } FolderDB dbobj = FolderHelper.changeToFolderDB(dataInfoObject as FolderInfo); int result = repository.AddFolderDB(dbobj); //将数据库生成的ID值传回 dataInfoObject.ID = dbobj.ID; return(0); }