这就是我的基本情况。 我试图利用NHibernate从一个数据库获取信息,制造一些来自测绘、序列化、以及将序列化物体移至闪电部分的物体。 没有任何起落错误,但当我回去序号时,它就没有回落。 我在插入一些突破点和通过后,就在一切都向南走。
我在座谈以下几点:
var tasks = (List<CSH_Task>)persistanceManager.RetrieveAll<CSH_Task>(SessionAction.BeginAndEnd);
并且进入我的PersistanceManager班,成功通过我的CSH_Task:
public IList<T> RetrieveAll<T>(SessionAction sessionAction)
{
/* Note that NHibernate guarantees that two object references will point to the
* same object only if the references are set in the same session. For example,
* Order #123 under the Customer object Able Inc and Order #123 in the Orders
* list will point to the same object only if we load Customers and Orders in
* the same session. If we load them in different sessions, then changes that
* we make to Able Inc s Order #123 will not be reflected in Order #123 in the
* Orders list, since the references point to different objects. That s why we
* maintain a session as a member variable, instead of as a local variable. */
// Open a new session if specified
if ((sessionAction == SessionAction.Begin) || (sessionAction == SessionAction.BeginAndEnd))
{
m_Session = m_SessionFactory.OpenSession();
}
// Retrieve all objects of the type passed in
ICriteria targetObjects = m_Session.CreateCriteria(typeof(T));
IList<T> itemList = targetObjects.List<T>();
// Close the session if specified
if ((sessionAction == SessionAction.End) || (sessionAction == SessionAction.BeginAndEnd))
{
m_Session.Close();
m_Session.Dispose();
}
// Set return value
return itemList;
}
Which is straight from an older example of NHibernate(I m extremely new to it) And it drops me into a "No Source Available" Page, which lists this
www.un.org/spanish/ecosoc 电话站:
Iesi.Collections.DLL!Iesi.Collections.Generic.HashedSet.HashedSet() Line 18
www.un.org/spanish/ecosoc 资料来源:。
Locating source for d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs . Checksum: MD5 {d3 1c 6c 95 94 c0 cb d4 b5 8d 8c 42 c5 4a 37 b2}
The file d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs does not exist.
Looking in script documents for d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs ...
Looking in the projects for d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs .
在一个项目中没有找到档案。
Looking in directory C:Program Files (x86)Microsoft Visual Studio 10.0VCcrtsrc ...
查阅名录C:Program文档(x86)Microsoftudio 10.0VCatlmfcsrcmfc ......
查阅目录C:Program文档(x86)Microsoftudio 10.0VCatlmfcsrcatl.
查阅目录C:Program文档(x86)Microsoftudio 10.0VCatlmfcinclude...... 查阅名录C:Users ackieanDesktop......
查阅名录E:SmartMCNHibernateRequired_Bins ......
资料来源:E:SmartMCNHibernateRequired_BinsHashedSet.cs。
确定检查组是否与下列地点相符:
1:E:SmartMCNHibernateRequired_BinsHashedSet.cs Checksum: MD5 {40 1b 39 7e 8f 4a 3f 6 11 41 88 70 9e 8f 8 f1} Checksum doesn t match.
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs.
The debugger could not locate the source file d:CSharpNHNH_Hg hibernatesrcIesi.CollectionsGenericHashedSet.cs .
If I keep stepping through it returns to my code, then back here listing a virtually identical message about DictionarySet.cs
我不是首先从这个机器上下载该项目的NHibernate的人,但我想,如果哈希德·茨/多西特需要工作的话,他们就会被缺席列入? 我今天用了约7个小时的时间来寻找答案,但现在却空洞。 我从未看到过像以前那样的错误。 我认为,它只是寻找一份档案,表明NHibernate需要,而且能够发现,但这里还有什么? 任何帮助都会受到高度赞赏。 我希望这是一个适当的地点/结构;我从未在此问过一个问题,因此我希望它不会完全不合适。