public CodesDB.ContactTypeDataTable Load() { this.sqlDa.SelectCommand = sqlSelectAll; CodesDB.ContactTypeDataTable dt = new CodesDB.ContactTypeDataTable(); Fill(dt); return(dt); }
public CodesDB.ContactTypeDataTable Load(string ContactTypeCode) { this.sqlDa.SelectCommand = sqlSelect; this.sqlSelect.Parameters.Clear(); this.sqlSelect.CommandText = "[ContactTypeSelectByContactTypeCode]"; 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("@ContactTypeCode", System.Data.SqlDbType.NVarChar, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null)); this.sqlSelect.Parameters["@ContactTypeCode"].Value = ContactTypeCode; CodesDB.ContactTypeDataTable dt = new CodesDB.ContactTypeDataTable(); Fill(dt); return(dt); }