1 - Applied patch from Roger Chapman allowing ActiveRecord to be used signed in Medium trust.
3 - Applied patch from Steven Radack which catches invalid configuration of multiple database types. (They must be abstract).
4 Now AR throws an exception rather than silently using the same database.
9 - Mark SessionScope.Dispose(true) overload as deprecated. FlushMode.Never is the new black.
11 - Added support for property-ref to BelongsTo (many-to-one)
13 - Added support for CompositeUserType properties in nested classes
15 - Added ActiveRecordBase.Asc/Desc(params string[] propertyNames) methods to allow convenient specification of sort order.
17 - Applied Oleg Snurnikov's patch fixing AR-178
18 "SessionScopeWebModule fails with HybridWebThreadScopeInfo"
20 - Applied Artur Grzegorzewicz's patch fixing AR-177
21 "Parameterless overload of ActiveRecordStarter.Initialize"
23 - Added RegisterAssemblies to ActiveRecordStarter
25 - Relaxed the need for Types that represent database boundaries to extend
26 from ActiveRecordBase. Following AR-160 changes.
28 - Applied Michael Thomas' patch fixing AR-165
29 "UniqueKey property on BelongsToAttributed does not cause generation of unique-key
30 attribute in associated many-to-one xml element"
32 - Applied Lee Henson's patch fixing AR-167
33 "A CompositeKey class with multiple Equals() overloads throws exception"
35 - Applied Michael Thomas' suggestion to fix AR-170
36 "Indeterministic crashes when creating the NHibernate Mapping"
38 - Applied Lee Henson's patch fixing AR-172
39 "Support for collection-type attribute on HasMany"
41 - Applied Gautier's patch fixing AR-173
42 "Add a type parameter to the methods : CreateSchema, DropSchema,
43 GenerateCreationScript and GenerateDropScript"
46 "GenerateCreationScripts and GenerateDropScripts generate the scripts for only one database"
48 - Applied Mike Thomas' suggestion to make AR work with multiple databases without the
49 ARBase usage. This fixes AR-160
51 - Added support for SaveOrUpdateCopy() which facilities working with detached objects.
53 - Applied Tim Haines' patch adding the ability to verify if the models match the db
54 structure. This can be done by setting the "verifyModelsAgainstDBSchema" attribute to true on
55 the ActiveRecord configuration node, or using the method VerifySchema on ActiveRecordStarter
57 - Applied Lee Henson's patch change Exists implementation to use ISession.Get
58 This is required for lazy loaded classes as the old implementation would always
61 - Applied patch by David N. Godfrey that
62 - Refactored ActiveRecord to rely on Castle.Components.Validator to perform validations
63 - Fixed an old behavior where ActiveRecord didn't notify the session scope about sessions
64 that were invalidated due to database errors.
66 - Pushed processing of configuration into InPlaceConfigurationSource so both
67 ActiveRecord and ActiveRecordFacility could handle it in one place.
70 "XmlGenerationVisitor.MakeCustomTypeAtt doesn't support generic types"
72 - Applied Matthew Robinson's patch fixing AR-152
73 "Incorporation of subselect fetch strategy"
75 - Added the CompositeUserTypeAttribute and allowed the use of NHibernate's ICompositeUserType (AR-128)
77 - Applied the Marc-André's tests patch (AR-136).
79 - Applied Simon Laroche's patch fixing AR-141
80 "Support for NHibernate nested-composite-element"
82 - Fixed the Validation for Generic types (AR-122 and MR-237)
84 - Fixed working with Lazy objects.
86 Classes that are marked with [ActiveRecord(Lazy = true)] break in the EnsureInitialized function with the exception:
88 Castle.ActiveRecord.Framework.ActiveRecordException:
89 You have accessed an ActiveRecord class that wasn't properly initialized. The only explanation is that the call to ActiveRecordStarter.Initialize()
90 didn't include CProxyTypeCastle_ActiveRecord_Tests_ModelVeryLazyObjectModel_NHibernate_ProxyINHibernateProxy1 class
92 - Applied Andrew Denysenko's patch fixing AR-142
93 "Allow setting "batch-size" on collections"
95 - Applied Roy Tate's patch fixing AR-143
96 "XmlGenerationVisitor generates incomplete XML mapping
97 for BelongsTo with composite key"
99 - AR-140 - Patch to allow "The <component> element allows a <parent> subelement that maps a property of the component class as a reference back to the containing entity."
102 - Applying commutative patch from Roy Tate: AR-133, AR-139, AR-138
103 ActiveRecordMultiQuery, ActiveRecordCriteriaQuery, CriteriaHelper, CountQuery.
105 - AR-129: Applied patch by John Hurrell
106 "Implement NHibernate's "foreign-key" Attribute"
109 "BelongsTo attribute does not support UniqueKey"
111 - AR-135: Applied patch from Rafael Steil - better error message when using non interface type for an association.
113 - AR-134: Applied patch from Kristofer Goss. Can now use [Field] on [Nested] types.
115 - AR-131 Applied patch Dave Godfrey. Using [Fetch] to specify the fetch strategy NHibernate will use. Note that this [Obsolete] the OuterJoin property on BelongsTo, in favor of the Fetch property.
117 - Added RawXmlMappingAttribute base class, which can be used to give Active Record additional mapping from external source.
118 This functionality was added to support rare cases that Active Record do not support (mapping an entity from a 3rd party assembly, etc).
119 Prefer to use the standard Active Record features over this.
121 - Applied John Hurrell's patch fixing AR-94
122 "ScalarQuery<T> on an empty table creates a null reference exception"
124 - Applied Ernst Perpignand's fixing AR-126
125 "Collection of dependent objects"
127 Quoting 'patch implementing collection of dependent objects as per Hibernate documentation section 7.2'
130 "Cannot use webservices or XmlSerializer on classes derived from ActiveRecordValidationBase because of IDictionary PropertiesValidationErrorMessage"
132 - Applied Patrick Earl's patch, adding event ModelCreated that allows to re-configure the model before
133 generating the XML for NHibernate.
135 - Added HqlNamedQuery attribute and allowed to use the Import attribute at the assembly level
137 - Applied Brian Romanko's patch fixing AR-104
138 "IsUniqueValidator does not work properly with nullable primary keys"
140 - Add Count(ICriterion[] criteria) overrides to ActiveRecordMediator and ActiveRecordMediator.Generic (original patch from Andy W. Dobbels)
143 "Add support for the <Operation>AndFlush family of methods to ActiveRecordMediator"
145 - Applied Jan Persson's patch fixing AR-122
146 "Problems validating inherited properties when using generics"
148 - Applied Edward Kreis' patch fixing AR-124
149 "ActiveRecord OneToOne attribute's "constrained" parameter doesn't appears in a NHibernate mappings"
151 - Applied John Hurrell's patch fixing AR-123
152 "Additional OnFlush functionality"
154 - Exposed some IValidator's properties.
156 - Renamed IActiveRecordQuery.Target to IActiveRecordQuery.RootType
158 - Added SetRange to ProjectionQuery<,>
160 - Made HasMany a bit smarter when dealing with Map elements.
162 AR now can guess the IndexType, the MapType and the Table name from the IDictionary<,> property.
165 - AR-118 added NoSetter.LoweCase property access option.
167 - Fixed AR-117 "ActiveRecordBase CRUD Methods Ignore SessionScope FlushMode"
169 The operations Save, Create, Delete, Update will not flush the session anymore
170 The operations SaveAndFlush, CreateAndFlush, DeleteAndFlush, UpdateAndFlush will
172 - Removed HqlBasedQuery.Count operation as it didn't work for complex queries
174 - Fixed AR-110 "Support rollback on TransactionScope Dispose without commit."
176 Now you can create a TransactionScope defining the behavior
177 if the dispose is reached and neither a votecommit nor voterollback was called
179 - Applied Andrew Peters' (see AR-105) with the following changes
181 - [breaking change] Renames ActiveRecordBase.CountAll to ActiveRecordBase.Count
182 as several overloads are by criteria and IMHO Count is a better, more general name.
184 - Adds an overload of Count that accepts an ICriterion[] - Modified CountQuery
185 to use NHibernate 1.2 Projections
187 - Reimplements (http://support.castleproject.org//browse/AR-100) so that it uses
188 the new Count overload instead of FindAll.
190 - Filled in as many missing doc comments as I could before my eyes hurt :-)
192 - Renamed "criterias" to "criteria" in method signatures - "criterias" is not a word.
196 - Fixed AR-115 Exists always returns True for lazily-proxied classes
197 Changed FindByPK to use Get/Load according to its parameters.
199 - Included PrimaryKeyType.Custom and property CustomGenerator:Type
200 allowing one to supply its own generator
202 - Included PrimaryKeyType.Counter and PrimaryKeyType.Increment
204 - Applied patch from Drew Burlingame
205 Add ActiveRecordBase<T>.Exists(params ICriterion[] criterias)
206 Method also added to ActiveRecordBase.
208 - Applied patch by Andrew Peters fixing AR-97
209 "Pluralization of table names"
211 This patch introduces the pluralizeTableNames attribute on the configuration
212 which, if set to true, pluralizes the ActiveRecord types tables where no name
218 public class Student : ActiveRecordBase<Student>
220 The table name will be infered as 'Students'
223 - Applied patch by Ernst Naezer fixing AR-93
224 "Scaffolding / ARdatabind crash when Typeof is not supplied in the HasMany attribute."
226 - Applied Lee Henson's patch fixing AR-88
227 "Move GetFieldOrPropertyValue from ConfirmationValidator to AbstractValidator"
229 - Applied Lee Henson's patch fixing AR-86
230 "Expose DetachedCriteria on ActiveRecordBase<T>.SlicedFindAll"
232 - Fixed AR-84: ActiveRecord TransactionScope should export interface to set IsolationLevel
233 Now you can specify the isolation level when you create a TransactionScope
235 - Applied Carlos Ble's patch adding Replicate support to ActiveRecordBase
237 - Moved ProjectionQuery and ScalarProjectionQuery to Castle.ActiveRecord.Queries, with the rest of the queries.
239 - Added untyped projection support, using just ProjectionQuery<Post>, which uses object[] tuples.
241 - Added real projection support, which allows the following code:
242 ProjectionQuery<Post, PostTitleAndId> proj = new ProjectionQuery<Post, PostTitleAndId>(
243 Projections.Property("Title"), Projections.Property("Id"));
244 ICollection<PostTitleAndId> posts = proj.Execute();
245 foreach(PostTitleAndId titleAndId in posts)
247 PostsList.Add( new ListItem(titleAndId.Title, titleAndId.Id) );
251 - Renamed ProjectionQuery<T> ScalarProjectionQuery<T>, in preperation for real projections.
253 - Added DetachCrietia support in ARBase<T>, which allows integration with NQG, and in general enables taking advantage of the full criteria API.
254 Improved methods are FindOne, FindAll, FindFirst
256 - Move to used NHibernate 1.2 rev #2352
258 - Applied Josh Robb's patch adding a check for isWeb=true on the Session module.
260 - Returned to the default lazy false behavior.
262 - Will automatically initialize entities when loading outside of scope.
264 - Removed IModelNode since it was no longer of any value.
266 - Added XML Documentation to all public/ protected methods
268 - Moved to using NHibernate 1.2 beta 1
269 IEntityPersister instead of IClassPersister
270 I had some issues with Nullables.dll support, but mainly because the hard coded version number.
271 Different DB Tests failed because of the way NHibernate changed transaction handling (more thorough cleansing of them), I manually saved the transaction executed, and they tests pass now.
273 I added type guessing to ISet<> (set), IList<> (bag), ICollection<> (bag), IDictionary<>(map)
275 The nicest new feature IMO is this:
277 ProjectionQuery<Blog, int> proj = new ProjectionQuery<Blog, int>(Projections.RowCount());
278 int rowCount = proj.Execute();
279 Assert.AreEqual(1, rowCount);
285 - Changed name of mapping files generated when isDebug=true. They now follow the NHibernate convention of name.hbm.xml
287 - Refactored: CompositeKey is not a class level attribute anymore
288 (minor breaking change)
293 public SomeClass Id { get/set }
298 public SomeClass Id { get/set }
301 - Added support for queries using the SQL language instead of HQL,
302 on classes derived from HqlBasedQuery (SimpleQuery, ScalarQuery, etc).
304 - Added ActiveRecordModel.GetModels(), which returns an array containing every registered ActiveRecordModel.
307 "Unique key on multiple columns"
309 Introduced UniqueKey on PropertyAttribute and FieldAttribute
311 - Introduced the following properties on PropertyAttribute and FieldAttribute:
318 "Allow users to specify autoImport"
320 Use the property UseAutoImport on ActiveRecordAttribute to control auto-import
322 - Resynched ActiveRecordAttribute with NHibernate <class> mapping. Added:
331 "Create property CustomPersister or Persister (Type) on ActiveRecordAttribute"
333 Added Persister property to ActiveRecordAttribute
335 - Applied Marc-André's patch fixing AR-79
336 "ValidateIsUnique not working with TransactionScope"
338 - Added XmlIgnore to IDictionary field on ARValidationBase
340 - Added support for generic abstract base class for a type hierarchy per discussions with Don
341 Morrison on IRC. The Generic Abstract Base class must conform to all the previous rules to
342 implement an abstract base class in a type hierarchy.
344 When initializing the class using the ActiveRecordStarter, you must use syntax similar to the
347 ActiveRecordStarter.Initialize( GetConfigSource(),
348 typeof(Model.GenericModel.Entity<>),
349 typeof(CompanyEntity),
350 typeof(PersonEntity));
352 Please see the GenericJoinedSubClassTestCase.cs for an example.
354 All rules about covariance and contravariance still apply.
356 - Applied Michael Morton's patch adding support to NHibernate's INamingStrategy.
357 This allow one to associate an implementation of INamingStrategy
358 through an attribute 'namingstrategytype' on activerecord config node
360 - Applied suggestion from Gokhan Altinoren fixing AR-77
361 "VisitPrimaryKey fails to generate correct <generator> xml
362 element for PrimaryKeyType.Identity when the system culture is set to Turkish"
364 - Applied Michael Morton's patch fixing AR-76
365 "SemanticVerifierVisitor Issue With NHibernate User Types"
367 - Refactored CompositeKey support. Now instead of using
370 public SomeClass Id { get/set }
373 public class SomeClass { ...
378 public SomeClass Id { get/set }
380 The old way is still supported though.
382 - Applied Freyr Magnússon's patch fixing AR-75
383 "SemanticVerifierVisitor causing fauly xml when using composit key"
385 - Added support for "ColumnPrefix" on [Nested] attribute. This change allows
386 a better usage of components, such as:
389 private String first, last;
391 [Property("first_name")] public string First { ... }
392 [Property("last_name")] public string Last { ... }
395 [ActiveRecord("children")]
397 private Name name, fatherName, motherName;
399 /* maps to database columns: first_name and last_name */
400 [Nested] Name Name { ... }
402 /* maps to database columns: father_first_name and father_last_name */
403 [Nested(ColumnPrefix="father_")] Name FatherName { ... }
405 /* maps to database columns: mother_first_name and mother_last_name */
406 [Nested(ColumnPrefix="mother_")] Name MotherName { ... }
409 - Review OneToOneAttribute test case, added one more unit test
411 - Removed OuterJoin attribute from OneToOneAttribute, replaced by Fetch property
413 - Added PropertyRef to OneToOneAttribute
415 - Applied patch to patch from josh robb - FindAllByProperty now handles null values internallly.
417 - Applied patch from josh robb - FindAllByProperty now handles null values internallly.
419 - Applied Freyr Magnússon's patch fixing misbehave related to abstract classes that defines different
420 database boundaries: "ActiveRecordStarter Initialize method assembply overloads fail
421 to add derived base types from config"
423 - Applied josh robb's patch "small fixup for length
424 validator error messages where there is only a minimum or maximum specified"
426 - Fixed AR-73: "Dynamic type adding after initialization"
428 - Added some logging. That's just a start: the idea is to increase AR verbosity
429 in order to reduce the need of debugging to diagnose problems.
431 - Refactored ActiveRecordStarter.Initialize to use ActiveRecordSectionHandler.Instance
433 - Introduced ActiveRecordSectionHandler.Instance to avoid repetitive code.
436 IConfiguration source = (IConfiguration) ConfigurationSettings.GetSection("activerecord");
438 (or similar) you can use
440 IConfiguration source = ActiveRecordSectionHandler.Instance;
442 Bare in mind that it looks for a section named "activerecord" on the configuration
443 file associated with the AppDomain, and throws an exception if it cannot be found.
445 - Applied Marc-Andre's patch fixing AR-68
446 "Make ActiveRecordValidation.ValidationErrorMessages virtual to simplify localisation"
448 - Added SessionScope.Current static property to gain access to the
449 current ISessionScope implementation
451 - Changed ISessionScope:
452 Added FlushAction property
453 Added Flush method to allow people to have more control on when to flush
455 - Applied patch by Michael Morton <mmorton@wickednite.com>. Quoting explanation:
457 Since the generic base class varies with the type parameter
458 (i.e. ActiveRecordBase<One> is not the same as ActiveRecordBase<Two>)
459 there is no easy way to specify multiple configurations using the
460 "type=" attribute. There is also no easy way to create multiple
461 subclasses as the documentation suggests for when using the non
464 However, there is an easy fix for this. Even though, for example,
465 these two base types are "different", ActiveRecordBase<One> and
466 ActiveRecordBase<Two>, they share the same generic type definition,
467 namely "ActiveRecordBase`1". With a small change to the function
468 "GetRootType" in "SessionFactoryHolder.cs" to make it look at the
469 generic type definition when dealing with a generic type, instead
470 of the generic type itself, you can once again easily access multiple databases.
473 You can now create multiple base types for each of your databases, such as...
475 class MyBaseOne<T> : ActiveRecordBase<T> { }
476 class MyBaseTwo<T> : ActiveRecordBase<T> { }
478 ... and then specify config for each by using the "type=" attribute like so ...
480 <config type="MyBaseOne`1, MyAssembly">
482 <config type="MyBaseTwo`1, MyAssembly">
485 Any subclasses of those will then get the correct configuration
486 settings. I have been using this change in my own builds for a
487 couple weeks now and it seems to be working ok. I have not
488 written any tests specifically for it, yet, but wanted to get
489 it out there in case anyone was interested.
491 - Applied patch by Brian Romanko <me@brianromanko.com> allowing the use
492 of different type for a Nested type (what NHibernate refers as a Component)
494 - Fixed AR-65: ActiveRecordBase<T> prevent users from using type inheritance
495 Refactored ActiveRecordBase<T> to extend ActiveRecordBase
496 Refactored ActiveRecordMediator<T> to extend ActiveRecordMediator
497 Could not do the same thing for the validation<T>
499 - Removed dependency on the Nullables library.
501 - Added native support for .NET 2.0 Nullables.
503 - Applied Brian Romanko <me@brianromanko.com> patch fixing enum support
505 - Fixed AR-62: DifferentDatabaseScope not switching between databases
507 - Introduced HybridWebThreadScopeInfo which, as the name implies,
508 uses both strategies to handle scope storage. Useful only for some complex scenarios
510 - Added support for RelationType.List.
512 - Simplified Exists<PkType> method on ActiveRecordBase<T>.
514 - Fixed AR-46 - OneToOne Attribute Does Not Support Specifying a Target Type
515 Added property MapType to OneToOne attribute
517 - Added ActiveRecordStarter.ResetInitializationFlag. Useful for test cases
518 that invoke Initialize multiple times
520 - Fixed AR-52 - Dont allow one to invoke Initialize more than once
522 - Added some flexibility into ActiveRecord Queries. They are now mutable,
523 which means we now have methods like 'SetParameter', 'SetParameterList' and
524 'SetRange'; and the 'Query' property is now read-write.
526 - Added support for query modifiers in ActiveRecord Queries. Any object implementing
527 IQueryModifier can be added to an ActiveRecordBaseQuery, using the
528 (protected) 'AddModifier' method. Parameters and query ranges
529 are implemented as query modifiers.
531 - Fixed AR-39: Added virtual to IsValid on ActiveRecordValidationBase/<T>
533 - Fixed AR-45: Added BindingFlags.NonPublic to DefaultBindingFlags on ActiveRecordModelBuilder
535 - Added Element to RelationAttribute, now can map relations of simple types
537 [HasMany(typeof(string), "ItemId", "Elements", Element = "Name")]
539 - Applied Antonio's patches
540 See http://forum.castleproject.org/posts/list/457.page and
541 http://forum.castleproject.org/posts/list/566.page
543 - Added Debug to IConfiguration Source. If set then XmlGenerationVisitor will save nhibernate mapping files to the AppDomain.BaseDirectory.
544 Usage: if you're the XmlConfigurationSource or the Section add the isDebug="true" attribute
546 - Added support to CompositeKeys as Foreign Keys (kudos to G. Richard Bellamy)
548 BelongsToAttribute - Added CompositeKeyColumns property.
549 HasAndBelongsToManyAttribute - Added CompositeKeyColumnKeys and CompositeKeyColumnRefs.
550 HasManyAttribute - Added CompositeKeyColumnKeys.
551 VersionAttribute - Added support for UnsavedValue.
552 SemanticVerifierVisitor - Added checks to ensure the composite key attributes are used properly.
553 XmlGenerationVisitor - Added output to support mapping the composite key attributes, as well as the unsaved-value attribute for Version.
555 In general, the changes are motivated by the need to have AR map to
556 legacy data, where composite keys are used as both primary and foreign
557 keys. The current AR support for CompositeKeys does not support
558 associations, this patch does.
560 There are some caveats when using this, which are driven by the NH
561 implementation. An assigned identifier (like all CompositeKeys and
562 many string PrimaryKeys) cannot be used to determine whether an instance
563 is detached or transient - since it's assigned by the application, it's
564 never null. Therefore, you must use another strategy, NH will misbehave
565 around the way it persists the instance to the database. That is why the
566 VersionAttribute had to have the support for UnsavedValue - the UnsavedValue
567 property of the Version is used by NH to determine the state of the instance.
569 For a discussion of the appropriate mappings and usage, see "Hibernate in Action," pgs. 330 - 335.
571 - Added SessionScopeWebModule which hooks BeginRequest and EndRequest initializing and
572 destructing a SessionScope properly. In order to use it add to httpModules section
577 <add name="ar.sessionscope" type="Castle.ActiveRecord.Framework.SessionScopeWebModule, Castle.ActiveRecord" />
581 - Added lifecycle methods that can be overriden:
588 - Applied patch from Ahmed Ghandour <aghandour@rydexinvestments.com> adding the methods
589 FetchCount and Exists to ActiveRecordBase
591 - Applied patch from Dave Godfrey fixing nested classes with relations problems (http://forum.castleproject.org/posts/list/457.page)
593 - Fixed a stack overflow exception when using IsUnique inside a session scope.
595 - You can now apply IsUnique to a property that also has PrimaryKey on it without problem.
597 - Resolved IsUnique bug with ActiveRecordValidationBase<> (it was non functional)
599 - Resolved test bugs with IsUnique for .net 1 and .net 2.
601 - Refactored query support:
602 - Introduced generic interface IActiveRecordQuery<T>, extending IActiveRecordQuery, for strongly-typed Execute() method support;
603 - Added IActiveRecordQuery.Enumerate(), for memory-intensive queries;
604 - Introduced HqlBasedQuery, decoupling ActiveRecordBaseQuery from HQL usage;
606 - Added ValidateCreditCard validation attribute.
608 - Added ValidateLength validation attribute.
610 - Added support for .Net 2.0 Connection Strings in the config file, using this method:
613 <add key="hibernate.connection.connection_string" value="ConnectionString = ${ConnectionStringKey}" />
617 <add name="ConnectionStringKey" connectionString="The Connection String"/>
620 This allows to take advantage of the connection string encryption as well as manage them using the built in tools.
622 - Added Exists<PkType>(PkType id) support to allow for checking of an object's existance
625 - Brought ActiveRecordBase.Generic inline with ActiveRecordBase feature wise.
626 Public Static Methods are now present on all ActiveRecordBase.Generic objects for common tasks such as Find, FindAll, etc.
628 <This is a breaking change.>
630 - Added support for NHibernate dynamic-update, dynamic-insert to ActiveRecordAttribute
632 - Simplified NHibernate markup generation for testing
634 Attributes are now written in one of two ways. Tags that have both an open and close
635 will have no space at the end of the attributes on the opening tag, while tags that
636 have no contents (<tag />) will be written with one space after the last attribute.
640 <openclose attrib="test" attrib2="test"></openclose>
642 <noclosetag attrib="test"/>
644 - Added ActiveRecordValidationBase<> to support validation on Generic AR classes
646 - Updated DeleteAll(Type targetType, IEnumerable pkValues) to support non int primary keys
648 - Add more hookable methods.
650 - Refactored Validation support to use NHibernate.IValidatable
652 - Brought ActiveRecordMediator.Generic inline with ActiveRecordMediator. This is a breaking
653 change (removal of a few methods/renaming of a few existing).
655 - Add import support (kudos to Dan Burnea)
656 [ActiveRecord, Import(typeof(ImportClassRow), "ImportClassRow")]
657 public class ImportClass : ActiveRecordBase
662 - Added FindAllByProperty, FindFirst and FindOne
664 - Added DeleteAll(type, where) (kudos to G. Richard Bellamy)
666 - Applied patch from Josh Robb. Added support for hooks on ActiveRecordBase<T>.
668 - DifferentDatabaseScope: so you can open a session using a different dbconnection
669 and persist your object model. Very experimental version
671 - Fixed: Support for multiple databases was completely broken.
673 - An implementation of ISessionFactoryHolder can be specified through the configuration, attribute sessionfactoryholdertype
676 - Added: ActiveRecordBase<T> - a generic form a ActiveRecordBase which relieves the need to re-write
677 all the base static methods to hide the type parameter and cast the result. Generics do it for you.
679 - Added: ActiveRecordStarter.CreateSchemaFromFile(filename) as an alternative to CreateSchema.
681 - Added: Support for composite keys - composite key class must be serializable and implement both Equals and GetHashCode.
682 Not complete support, missing the NHibernate key-many-to-one element in the composite key.
684 - Added: Support for Lazy loading class using BelongsTo. Will throw if there is a non virtual property that
687 - Closed: (AR-24) ValidationException must contain the validation error messages
689 - Support for fields in addition to properties
691 - Added [Any], [Any.MetaValue] and [HasManyToAny] attributes.
693 - Small improvement on ActiveRecordModelBuilder (less intensive on IsDefined/GetCustomAttribute)
695 - IThreadScopeInfo introduced. Two implementations: ThreadScopeInfo and WebThreadScopeInfo.
696 ThreadScopeInfo is the default implementation. You can use WebThreadScopeInfo by simply using
697 isWeb="true" on the configuration node:
699 <config isWeb="true">
702 Or you can provide your own implementation specifying the full type name
704 <config threadinfotype="my.threadinfotype, my.assembly">
710 - Transaction support: lots of minor fixes
712 - Added support for map relations.
713 Necessary to specify Index and IndexType on the HasMany (or HasAndBelongsToMany)
715 - IsUnique validator fix
721 Inner workings fully rewritten, better test cases coverage
729 Implemented support for Joined Subclasses
731 Implemented initial support for validations
737 Applied patch from John Morales (support for idbags)
743 Applied patch from John Morales (support for sets)
745 Applied suggestion and fixes from "jianxiao jiang" <jiangjianxiao@gmail.com> (NHibernateDelegate)
751 Applied patch from Luiz César Kuriki <luizck@gmail.com> in order to support NHibernate's Component feature
753 Applied modification suggested by Andrew Hallock and Craig Neuwirt in order to support HasOne relations.
759 Released (not changes to track yet)