摘要:
1、from 子句var db = new NorthwindDataContext();var categories = db.Session.CreateQuery("from Category") .List<Category>();foreach (var category in categories){ Console.WriteLine(category.CategoryName);}2、select 子句var db = new NorthwindDataContext();var categories = db.Sess... 阅读全文
随笔分类 - [30] NHibernate
NHibernate 快速入门教程(Visual Entity 初学者必看)
2011-08-24 18:28 by 麦舒, 1430 阅读, 收藏, 编辑
摘要:
前言:本教程主要针对 NHibernate 初学者,让新手快速入门。在这里用到的软件是 Visual Entity ,如果你对 Visual Entity 还不了解。请点击这里软件要求:1、Visual Studio 2008 或 Visual Studio 20102、Visual Entity ... 阅读全文