Click here to Skip to main content
12,352,294 members (60,952 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# WPF
Hi.....
I want to create book management system in wpf application..I have to insert book name,author,quantity, price etc to a datagrid.I have to insert these values using stored procedure and when i am invoking the event total button _click there should be another datagrid on which invoiceno and grand total of these books should be displayed...That also should be done using user defined stored procedure..I have created two seperate tables for this...Have to add relationship between them...How can i do this...
Thanks in advance..
swathi
Posted 23-Dec-12 16:58pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

Use Foreign key concept, check this link "http://www.w3schools.com/sql/sql_foreignkey.asp[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100