Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid object name 'dbo.Employee'. #1

Open
ajaykulkarni807 opened this issue Jun 29, 2019 · 0 comments
Open

Invalid object name 'dbo.Employee'. #1

ajaykulkarni807 opened this issue Jun 29, 2019 · 0 comments

Comments

@ajaykulkarni807
Copy link

Line 84: public async Task<List> GetEmployees() Line 85: { Line 86: var employeeList = await context.Employees.ToListAsync(); Line 87: List employeeViewModels = new List(); Line 88: if (employeeList.Count == 0)

[SqlException (0x80131904): Invalid object name 'dbo.Employee'.] System.Data.SqlClient.<>c.b__180_0(Task1 result) +955314 System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() +77 System.Threading.Tasks.Task.Execute() +47 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 System.Data.Entity.Core.EntityClient.Internal.d__c.MoveNext() +248 [EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details.] System.Data.Entity.Core.EntityClient.Internal.d__c.MoveNext() +341 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 System.Data.Entity.Core.Objects.Internal.d__0`1.MoveNext() +1402 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant