24
स्थित है जब मैं निम्नलिखित कोडNHibernate - जहां ISession.Query <T>()
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using NHibernate;
namespace NewNHTest
{
class A
{ }
class Program
{
static void Main(string[] args)
{
ISession session;
var q = session.Query<A>();
}
}
}
मैं मिल निम्न त्रुटि संकलित करने के लिए प्रयास करें:
'NHibernate.ISession' does not contain a definition for 'Query' and no extension method 'Query' accepting a first argument of type 'NHibernate.ISession' could be found (are you missing a using directive or an assembly reference?)
NHibernate.dll संस्करण 3.0 है .0.4000।
प्रोजेक्ट का .NET संस्करण 3.5 है।
मैं क्या गलत कर रहा हूं?
आपकी मदद के लिए धन्यवाद!