奥基先生,我认为我所有的组合都是正确的,现在我只是试图从数据库中挑选一些数据。 现在,我正在使用3.0NHibernate,但因违约支持LINQ(或至少相当一部分链接)。 如今,每例准则都是一例。
session.Linq<User>()
但就我而言,我无法找到如何确定会议或会议地点。 为什么在3.0中这样做,如果是的话,我如何安排会议? 如果不是的话,用NHibernate 3.0使用LINQ的适当方法是什么?
最新资料:
现在我有以下法典:
var configuration = new Configuration();
configuration.Configure();
configuration.AddAssembly(typeof(Tag).Assembly);
var sessionFactory = configuration.BuildSessionFactory();
var session = sessionFactory.GetCurrentSession();
但是,我发现一个编辑错误,说NHibernate。 ISession没有林克的定义。 下面是:
using System.Collections.Generic;
using System.Web.Mvc;
using MyProject.Models;
using MyProject.ViewModels.Desktop;
using NHibernate.Cfg;
我失踪了吗?