Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
という名前のデータセットを作成し、DataSet1.xsdいくつかのテーブルを追加し、最後にこれらのテーブルの 1 つにメソッドを定義しました。( InsertQuery(...)) スクリーンショットは次のようになります。
DataSet1.xsd
InsertQuery(...)
私の質問は、.aspxページでこのメソッド/関数をどのように使用できるかということです。 たとえば、ボタンが押されたら、Person テーブルに行を追加したいのですが、button_clicked プロシージャに何を記述すればよいですか? ありがとう
最後に、私は問題を解決できます:)
DataSet1TableAdapters.PersonTableAdapter adapter = new DataSet1TableAdapters.PersonTableAdapter; adapter.InsertQuery(...) // <-- my method haha!