Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

1146 error Table does not exist EF 6 add schema.schema.tablename prefix (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>