Nested select on Entity Framework

0

I need to select the Entity Framework, the select I wish to do is:

thanks.

    
asked by Paulo Sanchez 31.03.2018 в 23:55
source

1 answer

0

This is what I used in my project and it worked perfectly, it searches for the necessary variables, it changes the variables:

you can try one of these can be very helpful. these check you if they exist only change the variable: one number:

var usuarioexist = (from u in conn.USUARIOS where u.LOGIN == txtLogin.Text select u.LOGIN).ToList();
    if (usuarioexist.Count == 0)

two number:

var auten = (from u in conn0.USUARIOS where u.LOGIN == Login1.UserName && u.PASSWORD == Login1.Password select u.LOGIN).ToList();
    if (auten.Count > 0)

luck.

    
answered by 03.08.2018 в 22:56