LINQ query null reference exception

Posted by user289082 on Stack Overflow See other posts from Stack Overflow or by user289082
Published on 2010-03-08T19:02:07Z Indexed on 2010/03/08 19:06 UTC
Read the original article Hit count: 273

Filed under:
|
|
|
|

Hi! I have the next query:

  var bPermisos = from b in ruc.Permisos
                                     where b.IdUsuario == cu.Id
                                     select new Permisos(){
                                         Id=b.Id,
                                         IdUsuario=b.Id,
                                         IdPerfil=b.Id,
                                         Estatus=b.Estatus
                                     };
                    var qSisPer = from perm in bPermisos
                                  select new { perm.IdPerfil,perm.Cat_Perfil.Nivel,perm.Cat_Perfil.Nombre,Nombre_Sistem=perm.Cat_Perfil.Cat_Sistema.Nombre};

And is throwing me an exception, plz help!

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about query