Do you know any software or online web application or a tool in Visual Studio that can do this conversion?
And please someone help me, I can’t convert this complex (to Linq Like This : From x in UserRoleid Select x … Where …)
<code> var Result = userRoleIds.Select(s => (s.UserId, actionFullNames.Select(actionFullName
=> (actionFullName, permissions.Any(A => s.RoleIds.Contains(A.RoleId) &&
A.ActionFullName.Equals(actionFullName, StringComparison.OrdinalIgnoreCase))))
.ToArray())).ToArray();
</code>
<code> var Result = userRoleIds.Select(s => (s.UserId, actionFullNames.Select(actionFullName
=> (actionFullName, permissions.Any(A => s.RoleIds.Contains(A.RoleId) &&
A.ActionFullName.Equals(actionFullName, StringComparison.OrdinalIgnoreCase))))
.ToArray())).ToArray();
</code>
var Result = userRoleIds.Select(s => (s.UserId, actionFullNames.Select(actionFullName
=> (actionFullName, permissions.Any(A => s.RoleIds.Contains(A.RoleId) &&
A.ActionFullName.Equals(actionFullName, StringComparison.OrdinalIgnoreCase))))
.ToArray())).ToArray();
For Example :
<code>context.table.Where(a => a.FK.ID == b.Number).Sum(a => a.sumPrice)
=====To=This=====>
(from a in context.table where a.FK.ID == b.Number select a.sumPrice).Sum()
</code>
<code>context.table.Where(a => a.FK.ID == b.Number).Sum(a => a.sumPrice)
=====To=This=====>
(from a in context.table where a.FK.ID == b.Number select a.sumPrice).Sum()
</code>
context.table.Where(a => a.FK.ID == b.Number).Sum(a => a.sumPrice)
=====To=This=====>
(from a in context.table where a.FK.ID == b.Number select a.sumPrice).Sum()
1