English 中文(简体)
nHibernate + wcf + Isession
原标题:nHibernate + wcf + Isession

我有3个项目,即数据、世界合作框架和倡议。 第一个是一间图书馆,与他们对话。 它通过第二版,即WCF服务图书馆——其原因将在第三个项目中暴露——Asp.net 即ID——作为简单易碎点。

仅指出这一点,我不使用托存模式。

我需要让我来参加“世界合作框架”的号召(对“会议要求”办法的模拟)。 谁能分享简单可行的解决办法? 我不想为此利用任何国际奥委会。

最佳回答

使用<代码>WcfOperationSessionContext (new in 3.0)。

一旦受约束,你的数据类别就只能使用<代码>。

问题回答




相关问题
nHibernate one-to-many inserts but doesnt update

Instead of getting into code, I have a simple question. Default behavior for a simple one-to-many is that it inserts the child record then updates the foreign key column with the parent key. Has ...

How Do I copy an existing nhibernate object as a new object?

I a persisted NHibernate object that I would like to repersist as a new entity. How do I get NHibernate to save this object as if it was a new? I am thinking I might create a session interceptor to ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

NHibernate Search in a List using ICriteria

I have my class X : public class ClassX { public virtual IList<ClassY> ListY { get; set; } ... } My ClassX mapping (using Fluent) ... HasMany<ClassX>(x => x.ListY ) ....

热门标签