/// <summary> /// /// </summary> /// <param name="__table_name"></param> /// <param name="__creater"></param> public void load(string __table_name, CommandTextCreator __creater) { this.loader_.load( __table_name, __creater ); }
/// <summary> /// /// </summary> /// <param name="__table_name"></param> /// <param name="__block"></param> /// <returns></returns> public bool load(string __table_name, CommandTextCreator __block) { using ( SqlConnection connection = this.factory_.get_connection() as SqlConnection ) { SqlCommand command = new SqlCommand( __block( __table_name ), connection ); command.CommandTimeout = this.timeout_; try { this.adapter_.SelectCommand = command; this.adapter_.Fill( this.dataset_, __table_name ); } catch ( SqlException e ) { //SQLErrorLogger logger = new SQLErrorLogger( e ); //logger.write(); throw e; } } // �e�[�u������L���[�ɗ��ߍ��݂܂��B this.tablenames_.Enqueue( __table_name ); return true; }