Showing posts with label table. Show all posts
Showing posts with label table. Show all posts

Friday, February 3, 2012

Using DataGridView to Show Data in a table

Selecting multiple files and show their information on a DataGridView
    public partial class Form1 : Form
    {
        private String[] selectedFiles;
        public Form1()
        {
            InitializeComponent();
        }

Saturday, December 31, 2011

One Class Into 2 Tables

In some cases we have to create 2 tables out of one class. In such cases those tables must must maintain the referential integrity.

New Annotations Used :
  • @Table(name="Customer")  : Main table (1st table)
  • @SecondaryTable(name="CustomerDetail") : Secondary table
  • @Column(table="CustomerDetail") : Mark the fields which are going to maintain in the second table

© kani.stack.notez 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis