Please Friends Help me i have 4 tables 1. Master Book Table (MBookId,BookId,AuthorId,PubId) 2. Book Name ( BookId,BookName) 3. Author Name (AuthorId,AuthorName) 4. Publisher Name (PubId, PubName) DAL UI Layer DAL ---- Please suggest me how to achieve Datarelationship
DataRelation dr = new DataRelation("BookBookName",
ds.Tables["MBook"].Columns["BookId"],
ds.Tables["Book"].Columns["BookId"]);
ds.Relations.Add(dr);
is this right ? and how to use this in UI to get data, insert,update, save.. etc i google a lot but didn't find the right solution for my purpose and is datarelation ship with dataset is better or NHIBERNATE if nhiberate is better then do ineed to start in from start i mean i have to create the tables and all that once.......... i have already created the datatable and DAL methods of Save Edit etc.... Please Help Thank you very much EveryOne..... (specially CODEPROJECT)