Thank For The Help.
But How Can I Keep Record Of Which Employee Is Of What City..
Means If I Insert Two New Cities And Their Emp Records.
How Can I Identify That Which Emp Record Is Of Which City?
User Profile
Collapse
-
Is There Any Way To Check Whether A Emp Table Data Are Proper And
Are Not Going To Generate An Error On Saving,Mean Reference Error Or Any Other Error That Rejects The Emp Data To Post.
In That Case City Will Save Without Emp Data.
And I Want To Save City Data With Atleast One Emp In It.
How To RollBack That Changes If Emp Data Gives Error On Save.Leave a comment:
-
In Master Detail Relationship Child Table ParentId Saving Problem
I Have Two Table- City(CityId,Cit yName)
- Emp(EmpId,Name, Age,Salary,City Id)
Where In City CityId Is PrimaryKey.
In Emp EmpId Is PrimaryKey And CityId Is ForeignKey.
I Want To Know How To Create Relationship Between This Two Table In Easy Way Through Code.
----------------My Code----------------
...Code:Imports System.Data.SqlClient Public Class Form1 Dim Con As New SqlConnection("Data
No activity results to display
Show More
Leave a comment: