我想通过检查带有一些数字的id来获取数据.
int r = 0;
var ask = from y in entity.sorulars
where y.soru_id == questionID[r]
select new { y.sorutipi_id };
foreach (var hold2 in ask)
{
questionTypeID[r] = hold2.sorutipi_id;
r++;
}
Run Code Online (Sandbox Code Playgroud)
我使用这些代码但是
"LINQ to Entities不支持LINQ表达式节点类型'ArrayIndex'."
出现错误.我猜questionID[r]不支持,LINQ所以我应该键入什么而不是它.谢谢
我尝试在我的网站上使用FB登录,并需要获取用户信息(电子邮件,public_profile,出生日期和地点).但是在登录后我只获得了用户名和facebookId.代码:
<img src="" alt="" onclick="fblogin();"/>
Run Code Online (Sandbox Code Playgroud)
Javascript部分:
function statusChangeCallback(response) {
console.log('statusChangeCallback');
console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your …Run Code Online (Sandbox Code Playgroud) 我需要从枚举中获取不等于1的值并将其显示在下拉列表中.我的意思是,我不想展示Done它的价值.
public enum Statement
{
Done= 1,
Waiting= 2,
Rejected= 3
}
Run Code Online (Sandbox Code Playgroud)