0

I am trying to add a employee details in database table but I am Getting this error

 **Argument 1: cannot convert from 'MVCCRUDOPERTIONS.Models.DATABASE.emoloyee' to 'MVCCRUDOPERTIONS.Models.DATABASE.employee' MVCCRUDOPERTIONS C:\Users\user\source\repos\MVCCRUDOPERTIONS\MVCCRUDOPERTIONS\ViewModels\HOME\EmployeeViewModel.cs 26 Active**

since I am new in asp.net I am unable to sort this on my own.any help would be appreciated.

3
  • 1
    emoloyee? At least fix the typo. Commented Jul 9, 2019 at 19:49
  • now I am getting this error 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.' Commented Jul 9, 2019 at 20:01
  • @theCoder Refer to this link for your above error: stackoverflow.com/questions/7795300/… and also it would be great if you can show how you are adding your data to your database. Commented Jul 9, 2019 at 22:33

1 Answer 1

1

emoloyee and employee are two different classes

Sign up to request clarification or add additional context in comments.

2 Comments

now I am getting this error 'Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.'
@theCoder Did you see EntityValidationErrors property for more details? What did it say?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.