Getting Error ->
LINQ to Entities does not recognize the method 'Int32 ToInt32(System.String)' method, and this method cannot be translated into a store expression.
var checkcategory = from eqpCategory in db.rEqpCategories
join eqpType in db.rEqpTypes
on eqpCategory.EqpTypeId equals eqpType.EqpTypeId
join eqpGroup in db.rEqpGroups
on eqpType.EqpGroupId equals eqpGroup.EqpGroupId
where eqpCategory.EqpTypeId == int.Parse(cmbType.SelectedValue)
&& eqpCategory.EqpCategoryName == txtCategory.Text
&& eqpGroup.EqpGroupId == int.Parse(cmbGroup.SelectedValue)
select eqpCategory.EqpCategoryId;
if (checkcategory.Count() > 0)
{
Page.ClientScript.RegisterClientScriptBlock(typeof(CMSUtility.TransferEquipments),
"warning",
"alert('Category Already present for same Group and Type');",
true);
}