Exemplo n.º 1
0
        public appDB.AppSettingDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            appDB.AppSettingDataTable dt = new appDB.AppSettingDataTable();
            Fill(dt);
            return(dt);
        }
Exemplo n.º 2
0
        public appDB.AppSettingDataTable Load(int SettingId)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[AppSettingSelectBySettingId]";
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@SettingId", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

            this.sqlSelect.Parameters["@SettingId"].Value = SettingId;

            appDB.AppSettingDataTable dt = new appDB.AppSettingDataTable();
            Fill(dt);
            return(dt);
        }