public async void Get_Client_Mapping_Values_Test_Async()
        {
            var clientKey = new Guid("6b4fcc9e-108c-4908-aead-fb94bcbb1d68");
            IAsyncRepository <ClientMappingMaster> clientMappingMasterRepo = null;

            clientMappingMasterRepo = new ClientMappingMasterRepositoryAsync(_iAgentDevDb);
            var clientMappingMasterRecords = await clientMappingMasterRepo.FindWithGuidAsync(clientKey);

            foreach (var item in clientMappingMasterRecords)
            {
                Console.WriteLine(item.FieldKey);
            }
        }
Exemplo n.º 2
0
        private async Task GetClientMappingMasterRecordsAsync(IDbConnection db)
        {
            if (txtClientKey.Text != "")
            {
                try
                {
                    IAsyncRepository <ClientMappingMaster> clientMappingMasterRepo = new ClientMappingMasterRepositoryAsync(db);
                    var clientKey = Guid.Parse(txtClientKey.Text);
                    lblStatus.Text = "Getting Client Mapping Master...";
                    var clientMappingMasterRecords = await clientMappingMasterRepo.FindWithGuidAsync(clientKey);

                    ClientMappingMasterRecordsToGridView(clientMappingMasterRecords);
                    lblStatus.Text = "Getting Client Mapping Master Done...";
                }
                catch (SqlException)
                {
                    MessageBox.Show("Getting Client Mapping Master Done...");
                    throw;
                }
            }
        }