ADO NET void Fill TableData Table table void
データベースとADO. NET • メソッドの例 void Fill. Table(Data. Table table); void Update. Table(Data. Table table); void Fill. Table. By. Keys(Data. Table table, Data. Table. Keys keys); Data. Table. Keys Get. Keys(Data. Row row); void Fill. Table. By. Search(Data. Table table, Search. Condition condition); わんくま同盟 東京勉強会 #3
データベースとADO. NET • Table. AdapterをFormのContainerに参加さ せる。 • Table. Adapter は partial class で拡張する • Table. Adapterの資源をDisposeする • Stored. Procedure の戻り値を取得する • Command. Timeout を指定する http: //mnow. wankuma. com/cs 2005_mnow control 3. html わんくま同盟 東京勉強会 #3
Delegateを使おう • そこで出番はdelegateです。 public delegate void Fill. Delegate(Data. Table table); public delegate void Update. Delegate(Data. Table table); わんくま同盟 東京勉強会 #3
Delegateを使おう • イベントハンドラもデリゲートです。 private void xxx_Click(object sender, Event. Args e) public event Event. Handler Click public delegate void Event. Handler ( Object sender, Event. Args e ) わんくま同盟 東京勉強会 #3
Delegateを使おう public delegate void Update. Delegate(Data. Table table); private Update. Delegate _update; public Update. Delegate Update { get { return _update; } set { _update = value; } } Update(Data. Table); わんくま同盟 東京勉強会 #3
- Slides: 30