Beispiel #1
0
        //----------------------------------------------------------------
        //HAM PHU
        public void addParameter(SqlCommand cmd, ET_GianHang gianHang, String[] strNameParametor)
        { //MaGH, TenGH, SoLuongSach
            ArrayList list = gianHang.getAllProperties();

            foreach (string item in strNameParametor)
            {
                SqlParameter pt = new SqlParameter(item, list[Array.IndexOf(strNameParametor, item)]);
                cmd.Parameters.Add(pt);
            }
        }