NHibernate - Where ISession.Query() is located

后端 未结 1 2036
伪装坚强ぢ
伪装坚强ぢ 2021-02-07 00:01


When I try to compile the following code

using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using NHibernate;

name         


        
1条回答
  •  温柔的废话
    2021-02-07 00:57

    ISession.Query
    

    is new to NHibernate 3 and is an extension method. Try

    using NHibernate.Linq
    

    and it should be resolved fine.

    0 讨论(0)
提交回复
热议问题