English 中文(简体)
NHibernate和Shap建筑中的单一地点,以具体说明数据库和验证的实地长度
原标题:A single place in NHibernate and Sharp Architecture to specify field length for database and validation

I m 利用S#arp建筑,与NHibernate一道建立新的系统。 I m New to S#arp, but experiences with NHibernate. 我确实希望找到一个特点,就是在一处案文中明确需要了解时间的每个层次的实地长度。

换言之,我使用流利图来具体规定,变异物体的名称为50个。 (由于我仍在撰写大多数甚至所有类别的地图,我不再进行自动化。) 我只决定用<代码>ClassMap全文绘制。 我在地图上需要足够细节,以便从中产生完整的非行图。 然后,当我使用hbm2dl制作数据库图象时,我有50个理论家的实地时间。 这是巨大的。 但是,我也希望科索沃失踪人员调查委员会的有效人员自动加以执行。 我甚至想要 proxy子反对NHibernate在编织物中产生的那段时间,这样,如果在法典中,我应分配太长的价值,那么我就有一个例外。

如果没有真正克服我的项目,我是否希望实现这一目标? 这是我第一次使用流利测绘。 我认为这是流利的一个特征,但看起来像它这样做的就是这样。

最佳回答

你们需要使用NHibernate Validator ,因为这是NHibernate hbm2dl目前支持的唯一有效框架。 不幸的是,它像任何人一样,把NHibernate Validator和MVC3的验证联系在一起。 这里还有其他问题:

MVC 3, NHIbernate Validators &

由于I ve过去曾使用过xVal(MVC3有效器的主dec),过去曾使用NHibernate Validator属性进行客户验证、服务器-边验证和化妆品生成。 有些人只是需要投资一些TLC,以便获得NHibernate Validator与MVC3有效器玩.。

问题回答

暂无回答




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

热门标签