Answered by:
master/detail problem

Question
-
User1924272441 posted
i got two tables :Employee ,section
Employee: id , name ,sectionID
Section: id , name
i want to know how to make my controler add and edit employee information, including showing section name insted of number.
i cant use Master/Detail , becuase i search using emplyeeID not by what section.
thanx in advanced.
Tuesday, August 23, 2011 9:51 AM
Answers
-
User1682618242 posted
http://blog.stevensanderson.com/2011/01/28/mvcscaffolding-one-to-many-relationships/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 23, 2011 10:07 AM
All replies
-
User1682618242 posted
http://blog.stevensanderson.com/2011/01/28/mvcscaffolding-one-to-many-relationships/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 23, 2011 10:07 AM -
User1924272441 posted
i alredy have a database with relationships , i think that will create data from scratch. am i wrong ?
Tuesday, August 23, 2011 10:40 AM -
User1924272441 posted
not solved yet ..
Wednesday, August 24, 2011 3:27 PM -
User3866881 posted
i alredy have a database with relationships , i think that will create data from scratch. am i wrong ?
If you already have a table existing in the db. I think you can use LINQ or EntityFramework to solve your problem.(Follow the 2nd man's advice)
Thx again
Wednesday, August 24, 2011 10:59 PM