Last post Dec 11, 2012 05:11 AM by pradeepmanne
Member
21 Points
97 Posts
Dec 11, 2012 04:04 AM|pradeepmanne|LINK
Hi,
I Have created two tables with model first approach using dynamic website,
Table_1 with columns as col1,col2 col3 of string datatypes col1 as primary key
Table_2 with columns as col21,col22,col23 and col1 of string datatypes.Col21 as Primary key
created assocation by right clicking on Table_1 with One-to-Many Association .
when i am inserting values into Table_2 i should get the Value of Col1 of Table_1 in a dropdownlist but am not getting it.
instead am getting col2 value in the dropdown of Table_2
and also when i delete col3 column from Table_1 an getting the Col1 value in the dropdownlist of Table_2
how to use this Associations in modelfirst first approach,where am going wrong in my steps
Thanks inadvance
Dec 11, 2012 05:11 AM|pradeepmanne|LINK
hi ,
Check Below link for the solution ,
http://forums.asp.net/t/1620075.aspx/1?Problem+in+displaying+values+for+foreign+keys+in+Dynamic+data+asp+net+web+app
Member
21 Points
97 Posts
Foreign Key DropDown List Display Error
Dec 11, 2012 04:04 AM|pradeepmanne|LINK
Hi,
I Have created two tables with model first approach using dynamic website,
Table_1 with columns as col1,col2 col3 of string datatypes col1 as primary key
Table_2 with columns as col21,col22,col23 and col1 of string datatypes.Col21 as Primary key
created assocation by right clicking on Table_1 with One-to-Many Association .
when i am inserting values into Table_2 i should get the Value of Col1 of Table_1 in a dropdownlist but am not getting it.
instead am getting col2 value in the dropdown of Table_2
and also when i delete col3 column from Table_1 an getting the Col1 value in the dropdownlist of Table_2
how to use this Associations in modelfirst first approach,where am going wrong in my steps
Thanks inadvance
Pradeep kumar
Member
21 Points
97 Posts
Re: Foreign Key DropDown List Display Error
Dec 11, 2012 05:11 AM|pradeepmanne|LINK
hi ,
Check Below link for the solution ,
http://forums.asp.net/t/1620075.aspx/1?Problem+in+displaying+values+for+foreign+keys+in+Dynamic+data+asp+net+web+app
Pradeep kumar