Linqコマンドを使用して、すべてのレコードの特定の列のデータを選択したい.Hereは私のコードです
[HttpGet]
public ActionResult DeleteRole(RoleManager model)
{
string [] getRole = (from r in Session.Query<RoleManager>()
select r.roleName).ToArray();
foreach( var myrole in getRole)
{
model.roleName = myrole.roleName;
}
return View(model);
}
しかし、それは機能していません。ご案内いただけますか。