BKI_DichVuMatDat.US_DUNG_CHUNG.FillDatasetWithTableName C# (CSharp) Method

FillDatasetWithTableName() private method

private FillDatasetWithTableName ( DataSet op_ds, string ip_str_table_name ) : void
op_ds System.Data.DataSet
ip_str_table_name string
return void
        internal void FillDatasetWithTableName(DataSet op_ds, string ip_str_table_name)
        {
            CStoredProc v_cstore = new CStoredProc("get_data_from_table");
            v_cstore.addNVarcharInputParam("@TABLE_NAME", ip_str_table_name);
            v_cstore.fillDataSetByCommand(this, op_ds);
        }

Usage Example

        private DataSet load_data_2_ds_v_dm_nv()
        {
            US_DUNG_CHUNG v_us = new US_DUNG_CHUNG();
            DataSet v_ds = new DataSet();

            v_ds.Tables.Add(new DataTable());
            v_us.FillDatasetWithTableName(v_ds, "V_DM_NHAN_VIEN");
            return v_ds;
        }