How to use Transaction inside Using{} block
问题 At present while doing any database related code i use the following structure: try { using(FBConnection con = new FBConnection('connectionstringhere')) { con.Open(); using(FBCommand cmd = FBCommand("qryString",con)) { cmd.Parameters.Add("paramSql", FbDbType.Date).Value ="somevalue"; cmd.CommandType = CommandType.Text; using(FBDatareader rdr = cmd.ExecuteReader()) { while(rdr.Read()) { //some code here } } } } } catch(FBException ex) { MessageBox.Show(ex.Message); } Now i want to incorporate