public class shortuser
{
....
}
public calss userinfo:userinfo
{
....
}
var query =_UserInfo.Collection.AsQueryable<UserInfo>()
.Where(c => (c.Username == userName&&c.Password==passWord));
if (query.Count() > 0)
{
_userinfo = query.First();
}
return _userinfo;
返回的
var query =_UserInfo.Collection.AsQueryable<UserInfo>()
.Where(c => (c.Username == userName&&c.Password==passWord));
if (query.Count() > 0)
{
_userinfo = query.First();
}
问题:找到数据后返回的 _userinfo只包含了USERINFo的字段,没有包含shortuserinfo的字段
是c#驱动的bug还是我用的查询不对?
应该不会是C#驱动的bug