从v2.2.1版起,NBear开始支持强类型的实体查询语法。例如,我们可以以如下的语法查询需要的数据: LocalUser[] users = gateway.Select(_Entity.LocalUser.Id 5 | _Entity.LocalUser.LoginId == "teddy", _Entity.LocalUser._OrderBy.Id_Desc & _Entity.LocalUser._OrderBy.LoginId); Read More
posted @ 2006-08-27 22:15 Teddy's Knowledge Base Views(4210) Comments(28) Diggs(0) Edit