Exemple #1
0
        public CodesDB.LanguageCodeDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CodesDB.LanguageCodeDataTable dt = new CodesDB.LanguageCodeDataTable();
            Fill(dt);
            return(dt);
        }
Exemple #2
0
        public CodesDB.LanguageCodeDataTable Load(string LanguageCode)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[LanguageCodeSelectByLanguageCode]";
            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("@LanguageCode", System.Data.SqlDbType.NVarChar, 1, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

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

            CodesDB.LanguageCodeDataTable dt = new CodesDB.LanguageCodeDataTable();
            Fill(dt);
            return(dt);
        }