Hi,
I am trying to insert data into my database throgh Entity framwork my code is below
private POSDatabaseEntities1 posde = new POSDatabaseEntities1();
private void btnSave_Click(object sender, EventArgs e)
{
Tbl_Users Users = new Tbl_Users();
Users.FirstName = txtFName.Text;
Users.LastName = txtLName.Text;
Users.CNICNumber = txtCNIC.Text;
RBSDE.AddToTbl_Users(Users);
RBSDE.SaveChanges();
MessageBox.Show("Record has successuffly beem Saved");
}
Although i am geting the messagebos but when i close my application and open table data the entry is not inserted i am stuck with this why it is not giving errors