我将一个bash脚本重写成一个独立的C程序,用于将当前目录挂载到ramfs中。但是我仍然使用" system()"对于某些功能。唯一让我烦恼的是使用C mount功能。在我的代码中,我用系统调用来调用它,但我想知道在我的情况下对于C`s系统的正确用法。
var memberData = (from u in _objGroupRepositoty.Value.GetUsers()
join umedia in _objGroupRepositoty.Value.GetMediaDetails() on u.userid equals umedia.userid
join gm in _objGroupRepositoty.Value.GetGroupMaster() on groupId equals gm.GDID
join m in _objGroupRepositoty.Value.GetGroupMembers() on u.userid equals m.userid
join media in _objGroupRepositoty.Value.GetMediaDetails() on gm.GDID equals media.GDID
where (m.GDID == groupId
&& m.IsActive == true
&& gm.IsActive == true
&& u.IsActive == true)
select new
{
userid = u.userid,
firstname = u.firstname,
lastname = u.lastname,
mobile_no = u.mobile_no,
imagepath = umedia.media_path,
IsAdmin = m.IsAdmin,
GroupID = gm.GroupID,
group_name = gm.group_name,
tagline = gm.tagline,
groupImage = media.media_path,
ChatRoomId = gm.ChatRoomId,
OperationType
//newMember = newMemberLists.Contains(u.userid) than "Y" : "N",
}).ToList().Distinct();