English 中文(简体)
NHibernate如何处理PrimitiveType?
原标题:What s the deal with PrimitiveType in NHibernate?
  • 时间:2012-05-07 06:52:24
  •  标签:
  • nhibernate

I just noticed someone using the PrimitiveType class. It seems like an alternative to IUserType, but I can t find any documentation for it. What is it for?

最佳回答

<代码>PrimitiveType是NHibernate的原始类型实施的基本类别。 它不是一个“IUserType,而是“IType”。 对我来说,这似乎并不是打算继承在新西伯利亚之外,至少不会是经常 st。 另一方面,它似乎更强大,也是一个公共部门。 然而,如果你能够用一个固定的<代码>IUserType解决你的问题,我建议使用这一编号。

NH实施的所有类型IType。 <>编码>PrimitiveType与CustomType相同,该编码包括。 IUserType。 因此,IUserType不是 IType直接。

“entergraph

问题回答

暂无回答




相关问题
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 ) ....

热门标签