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

Table columns

The columns of the table define what kind of information we can store in a table. If we make a comparison between a table and an entity type (a C# class), then we can say that the table column is equivalent to a property of the entity. To define a property on a class, we have to give it a name and a data type. Similarly, a table column has a name and a data type. We can define even more characteristics on a column such as a restriction whether the column is nullable or not. By the way, null is a database term used to define an undefined value.

Data types of table columns

You might have already noticed that the data types used for table columns differ quite a bit from those you generally use when defining properties of a C# class. The ...

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