 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

June 11th, 2014, 10:53 PM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Unable to add Navigation Property
Hello Sir , First of all Thanks for making such a nice book, which simple and deep explanation .Sir I am unable to add Navigation Property On TRY OUT-pg497-pg500, which maps collection in edmx file i had recreated tables and relation ship many times but unable to get the Navigation Properties .
please help
thanks in advance
|
|

June 12th, 2014, 03:58 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did you create the proper relationships between the primary key on one, and the foreign key in the other table in SQL Server?
Imar
|
|

June 12th, 2014, 12:56 PM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
sir , i had dragged the id of table Photoalbum into the PhotoAlbumId of picture Table, but still i am not getting any Navigation Property.
I am not gettin My Table Name in the Add Button of the Update Table Wizard.Sir one more thing i have not understood the concept of Collection used in previous Try Out.
THANKS
REGARDS
NIKHIL
Last edited by nikhilrathi99; June 12th, 2014 at 01:36 PM..
|
|

June 12th, 2014, 02:03 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did you update the EF model after you updated the database? Try right-clicking the EF model, choose Update Model from Database and then click OK to save the changes.
Collection are objects designed to hold zero or more other objects. Check out the following resources to learn more:
http://www.c-sharpcorner.com/UploadF...-with-C-Sharp/
http://geekswithblogs.net/BlackRabbi...ion-class.aspx
By the way, it would have been better if you's started a new thread for the question about collections as it is not related to the original topic of the Navigation properties.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

June 13th, 2014, 05:38 AM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
sir actually i had detached the database few minutes back .But now i am not able to connect to the data base , thus i am not able to update the data base.
plz help
|
|

June 13th, 2014, 05:50 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Either attach it again, or try double-clicking the database file in the App_Data folder.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

June 13th, 2014, 06:51 AM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 8
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Thanks sir problem solved
Last edited by nikhilrathi99; June 13th, 2014 at 06:54 AM..
|
|
 |
|