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

Pg 503 Employees Razor class library #19

Open
benhabing opened this issue Oct 19, 2020 · 2 comments
Open

Pg 503 Employees Razor class library #19

benhabing opened this issue Oct 19, 2020 · 2 comments

Comments

@benhabing
Copy link

benhabing commented Oct 19, 2020

Hi @markjprice, first, thanks for the informative book! I'm picking up programming again after 15 years of being on the Ops side. A lot has changed! Please excuse if this is a noob Q.

My issue is trying to get the partial view working for the employees. I resolved the issue of not having employee data due to the date check; thanks for the updated sql script.

But I still can't seem to get the cards to display. If I enter static data, for some cards, they display, but it's like the employee data either isn't getting loaded into the array, or there's some formatting issue in the HTML that I just don't have the experience to troubleshoot. I have done a compare of my employees.cshtml, employees.cshtml.cs, and _Employee.cshtml to what you have in the repo and they all seem to match up.

Any thoughts?

Ben H.

@markjprice
Copy link
Owner

Hi, I'm happy that you have found my book informative. I am super busy getting the fifth edition ready for publishing in a few weeks. After that, I will have a look at your issue. Since your employees.cshtml, employees.cshtml.cs, and _Employee.cshtml are all identical to the solution code, the issue is likely to be in the entity model or database connection configuration. But until I run the code again and try breaking it, it's tricky to say right now what the issue might be. I will leave this issue open to remind me.

@benhabing
Copy link
Author

Sounds good. Good luck with the 5th Edition!

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

2 participants