コード例 #1
0
 public int UpdateNSX(Info.NhaSXInfo info)
 {
     cn.ExecuteNonQuery("SP_UPDATENHASX",
                        new string[] { "@MA", "@MAQG", "@DIENTHOAI", "@TENSX" },
                        new object[] { info.Mansx, info.MaQG, info.DienThoai, info.Tennsx });
     return(1);
 }
コード例 #2
0
        public int DeleteNSX(Info.NhaSXInfo info)
        {
            int id = cn.ExecuteNonQuery("sp_DeleteNSX",
                                        new string[] { "@MASX" },
                                        new object[] { info.Mansx });

            return(id);
        }
コード例 #3
0
        public int InsertNSX(Info.NhaSXInfo info)
        {
            int id = cn.ExecuteInsert("SP_INSERTNSX",
                                      new string[] { "@MAQG", "@DIENTHOAI", "@TENSX" },
                                      new object[] { info.MaQG, info.DienThoai, info.Tennsx });

            return(id);
        }