concept date in category .net

This is an excerpt from Manning's book Entity Framework 4 in Action.
The datatype mismatch refers to the different data representations and constraints that are used in the object and relational worlds. When you add a column to a table in a database, you have to decide what datatype to assign to it. Any modern database supports char, varchar, int, decimal, date, and so on. When it comes to classes, the situation is different. Database int and bigint types fit naturally into .NET Int32 and Int64 types, but other database types don’t have an exact match in .NET.
var result = from o in orders where o.OrderDate.Date == DateTime.Now.Date select o;

This is an excerpt from Manning's book NHibernate in Action.
For some other classes, the business key may be more complex, consisting of a combination of properties. For example, candidate business keys for the Bid class are the item ID together with the bid amount, and the item ID together with the date and time of the bid. A good business key for the BillingDetails abstract class is the number together with the type (subclass) of billing details. Notice that it’s almost never correct to override Equals() on a subclass and include another property in the comparison. It’s tricky to satisfy the requirements that equality be both symmetric and transitive in this case; and, more important, the business key wouldn’t correspond to any well-defined candidate natural key in the database (subclass properties may be mapped to a different table).
You’ve reached the end of this book. What remains is for us to give you some guidance and advice that will help you get started and master NHibernate. In this appendix, we enumerate the requirements to use NHibernate. Then, we give you a roadmap to progressively master NHibernate and keep yourself up to date. Finally, we encourage you to discover the internals of NHibernate and to contribute to and help improve NHibernate.