2009/05/08 ActiveRecord Alpha Release

本文介绍 Castle ActiveRecord 的更新内容,包括与 NHibernate 的集成改进、多表实体支持、验证功能增强等,并提供了相关代码示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2.0 Alpha1

===

- Updated NHibernate to 2.1 Alpha. Please specify the byte code provider in your config files.



- Restored AutoFlush behaviour under NHibernate 2.0.



- Added code that can guess an collection of mapped Enums without specifying the ColumnKey, Element or ElementType.

Breaking: changed the ElementType from a string to a type.



- Search parent models when trying to infer BelongsTo relationship information.



- Allow CompositeUserType to be applied to fields too.



- Adding support for integrating NH models and AR models.

Sample of how this can be done can be found here:

https://svn.castleproject.org/svn/castle/trunk/ActiveRecord/Castle.ActiveRecord.Tests/IntegrationWithNHibernateTestCase.cs



- Supporting mutli table entities using JoinedTable

For more details: http://blogs.hibernatingrhinos.com/Craig/archive/2008/06/29/multi-table-entity-support-for-activerecord.aspx



- Added Default property to PropertyAttribute and FieldAttribute. When present it renders

<column default="value" />

Which one day will be supported by NHibernate, right?



- Added UpdateSchema to ARStarter



- Applied Alwin's patch adding IValidationProvider common interface for AR models that can be validated.



- Applied Rick Fleming's patch adding GetRegisteredTypes to ActiveRecordStarter.



- Added IsOverride to PrimaryKey attribute to allow a primary key in a derived

class to override one in the base class.



- Applied Vladimir Okhotnikov's patch fixing TransactionScope Flush



- Applied Alun Harford's patch fixing AR-182

"ActiveRecordStarter.ModelsCreated run too late"



- Added IsOverride to Property attribute to allow a property in a derived

class to override one in the base class.



- Added SqlQueryJoinDefinition, SqlQueryScalarDefinition and refactored to

put behavior in IQueryModifier.Apply.



- Added QueryResultTransformer modifier to allow setting a results transformer.



- Applied patch from Patrick Steele adding support for DiscriminatorLength in mappings.



- Added support for validating nested properties.



- Applied patch from Roger Chapman allowing ActiveRecord to be used signed in Medium trust.



- Applied patch from Steven Radack which catches invalid configuration of multiple database types. (They must be abstract).

Now AR throws an exception rather than silently using the same database.

转载于:https://www.cnblogs.com/ugvanxk/archive/2009/05/11/1454241.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值