public OldPlayerTransferRegisterInfo[] GetAllPlayerTransferRecords() { OldPlayerTransferRegisterInfo[] records = null; MyDBHelper.Instance.ConnectionCommandSelect(mycmd => { string sqlText = "select * from oldplayertransferregisterinfo "; mycmd.CommandText = sqlText; DataTable table = new DataTable(); MySqlDataAdapter adapter = new MySqlDataAdapter(mycmd); adapter.Fill(table); records = MetaDBAdapter <OldPlayerTransferRegisterInfo> .GetOldPlayerTransferRegisterInfo(table); }); return(records); }