コード例 #1
0
        public virtual int Fill(acl_user.base_user_infoDataTable dataTable)
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if ((this.ClearBeforeFill == true))
            {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);

            return(returnValue);
        }
コード例 #2
0
        public virtual int FillBy(acl_user.base_user_infoDataTable dataTable, string value)
        {
            this.Adapter.SelectCommand = this.CommandCollection[2];
            if ((value == null))
            {
                throw new System.ArgumentNullException("value");
            }
            else
            {
                this.Adapter.SelectCommand.Parameters[0].Value = ((string)(value));
            }
            if ((this.ClearBeforeFill == true))
            {
                dataTable.Clear();
            }
            int returnValue = this.Adapter.Fill(dataTable);

            return(returnValue);
        }