hi, i am trying to execute this code in asp.net
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFSample
{
class Program
{
static void Main(string[] args)
{
try
{
using (cursomvcEntities db = new cursomvcEntities())
{
var lst = from d in db.user
where d.email == "gsefren@gmail.com" && d.password == "1234567" && d.idstate == 1
select d;
if (lst.Count() > 0)
{
user Ouser = lst.First();
Console.Write("Si entro");
}
else
{
Console.Write("No entro");
}
}
}
catch (Exception ex)
{
Console.Write("Ocurrió un error :( " + ex.Message);
}
}
}
}
but give me an error the table cursomvc.cursomvc.user does not exist
i generate the Model from Database First i dont know how or why EF add twice cursomvc i really apreciate your help
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFSample
{
class Program
{
static void Main(string[] args)
{
try
{
using (cursomvcEntities db = new cursomvcEntities())
{
var lst = from d in db.user
where d.email == "gsefren@gmail.com" && d.password == "1234567" && d.idstate == 1
select d;
if (lst.Count() > 0)
{
user Ouser = lst.First();
Console.Write("Si entro");
}
else
{
Console.Write("No entro");
}
}
}
catch (Exception ex)
{
Console.Write("Ocurrió un error :( " + ex.Message);
}
}
}
}
but give me an error the table cursomvc.cursomvc.user does not exist
i generate the Model from Database First i dont know how or why EF add twice cursomvc i really apreciate your help