O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying the foundation – table layouts

The first and foremost important element of a schema is the table. Data is stored inside tables. A table is comparable to a spreadsheet, as you might be familiar with from tools such as Microsoft Excel. It consists of a collection of rows and columns. While the rows of a table represent the actual data, the table contains the columns that define what type of data is stored in a table. In the following screenshot, we have a sample of a very simple table storing product category data:

Laying the foundation – table layouts

The table name is Categories, which denotes what we also call the database entity we are dealing with. The column headers represent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required