Exemple #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     MessageBox.Show(BunifuMapper.GenerateInsert <Customer>(new Customer()
     {
         ContactName  = "Kim Too Flex",
         Address      = "001",
         City         = "Nairobi",
         Country      = "Kenya",
         CustomerName = "Tiondo",
         PostalCode   = "00100"
     }, "Customers"));
 }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string querry = "Select * from customers";


            dataGridView1.DataSource = DB.GetRows(querry);


            List <Customer> customers = BunifuMapper.MapToList <Customer>(DB.GetRows("Select * from customers"));


            Customer c = customers.Where(r => r.ContactName.Contains("too")).FirstOrDefault();

            MessageBox.Show(c.CustomerID.ToString());
        }