1 - Added IsOverride to PrimaryKey attribute to allow a primary key in a derived
2 class to override one in the base class.
4 - Applied Vladimir Okhotnikov's patch fixing TransactionScope Flush
6 - Applied Alun Harford's patch fixing AR-182
7 "ActiveRecordStarter.ModelsCreated run too late"
9 - Added IsOverride to Property attribute to allow a property in a derived
10 class to override one in the base class.
12 - Added SqlQueryJoinDefinition, SqlQueryScalarDefinition and refactored to
13 put behavior in IQueryModifier.Apply.
15 - Added QueryResultTransformer modifier to allow setting a results transformer.
17 - Applied patch from Patrick Steele adding support for DiscriminatorLength in mappings.
19 - Added support for validating nested properties.
21 - Applied patch from Roger Chapman allowing ActiveRecord to be used signed in Medium trust.
23 - Applied patch from Steven Radack which catches invalid configuration of multiple database types. (They must be abstract).
24 Now AR throws an exception rather than silently using the same database.
29 - Mark SessionScope.Dispose(true) overload as deprecated. FlushMode.Never is the new black.
31 - Added support for property-ref to BelongsTo (many-to-one)
33 - Added support for CompositeUserType properties in nested classes
35 - Added ActiveRecordBase.Asc/Desc(params string[] propertyNames) methods to allow convenient specification of sort order.
37 - Applied Oleg Snurnikov's patch fixing AR-178
38 "SessionScopeWebModule fails with HybridWebThreadScopeInfo"
40 - Applied Artur Grzegorzewicz's patch fixing AR-177
41 "Parameterless overload of ActiveRecordStarter.Initialize"
43 - Added RegisterAssemblies to ActiveRecordStarter
45 - Relaxed the need for Types that represent database boundaries to extend
46 from ActiveRecordBase. Following AR-160 changes.
48 - Applied Michael Thomas' patch fixing AR-165
49 "UniqueKey property on BelongsToAttributed does not cause generation of unique-key
50 attribute in associated many-to-one xml element"
52 - Applied Lee Henson's patch fixing AR-167
53 "A CompositeKey class with multiple Equals() overloads throws exception"
55 - Applied Michael Thomas' suggestion to fix AR-170
56 "Indeterministic crashes when creating the NHibernate Mapping"
58 - Applied Lee Henson's patch fixing AR-172
59 "Support for collection-type attribute on HasMany"
61 - Applied Gautier's patch fixing AR-173
62 "Add a type parameter to the methods : CreateSchema, DropSchema,
63 GenerateCreationScript and GenerateDropScript"
66 "GenerateCreationScripts and GenerateDropScripts generate the scripts for only one database"
68 - Applied Mike Thomas' suggestion to make AR work with multiple databases without the
69 ARBase usage. This fixes AR-160
71 - Added support for SaveOrUpdateCopy() which facilities working with detached objects.
73 - Applied Tim Haines' patch adding the ability to verify if the models match the db
74 structure. This can be done by setting the "verifyModelsAgainstDBSchema" attribute to true on
75 the ActiveRecord configuration node, or using the method VerifySchema on ActiveRecordStarter
77 - Applied Lee Henson's patch change Exists implementation to use ISession.Get
78 This is required for lazy loaded classes as the old implementation would always
81 - Applied patch by David N. Godfrey that
82 - Refactored ActiveRecord to rely on Castle.Components.Validator to perform validations
83 - Fixed an old behavior where ActiveRecord didn't notify the session scope about sessions
84 that were invalidated due to database errors.
86 - Pushed processing of configuration into InPlaceConfigurationSource so both
87 ActiveRecord and ActiveRecordFacility could handle it in one place.
90 "XmlGenerationVisitor.MakeCustomTypeAtt doesn't support generic types"
92 - Applied Matthew Robinson's patch fixing AR-152
93 "Incorporation of subselect fetch strategy"
95 - Added the CompositeUserTypeAttribute and allowed the use of NHibernate's ICompositeUserType (AR-128)
97 - Applied the Marc-André's tests patch (AR-136).
99 - Applied Simon Laroche's patch fixing AR-141
100 "Support for NHibernate nested-composite-element"
102 - Fixed the Validation for Generic types (AR-122 and MR-237)
104 - Fixed working with Lazy objects.
106 Classes that are marked with [ActiveRecord(Lazy = true)] break in the EnsureInitialized function with the exception:
108 Castle.ActiveRecord.Framework.ActiveRecordException:
109 You have accessed an ActiveRecord class that wasn't properly initialized. The only explanation is that the call to ActiveRecordStarter.Initialize()
110 didn't include CProxyTypeCastle_ActiveRecord_Tests_ModelVeryLazyObjectModel_NHibernate_ProxyINHibernateProxy1 class
112 - Applied Andrew Denysenko's patch fixing AR-142
113 "Allow setting "batch-size" on collections"
115 - Applied Roy Tate's patch fixing AR-143
116 "XmlGenerationVisitor generates incomplete XML mapping
117 for BelongsTo with composite key"
119 - 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."
122 - Applying commutative patch from Roy Tate: AR-133, AR-139, AR-138
123 ActiveRecordMultiQuery, ActiveRecordCriteriaQuery, CriteriaHelper, CountQuery.
125 - AR-129: Applied patch by John Hurrell
126 "Implement NHibernate's "foreign-key" Attribute"
129 "BelongsTo attribute does not support UniqueKey"
131 - AR-135: Applied patch from Rafael Steil - better error message when using non interface type for an association.
133 - AR-134: Applied patch from Kristofer Goss. Can now use [Field] on [Nested] types.
135 - 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.
137 - Added RawXmlMappingAttribute base class, which can be used to give Active Record additional mapping from external source.
138 This functionality was added to support rare cases that Active Record do not support (mapping an entity from a 3rd party assembly, etc).
139 Prefer to use the standard Active Record features over this.
141 - Applied John Hurrell's patch fixing AR-94
142 "ScalarQuery<T> on an empty table creates a null reference exception"
144 - Applied Ernst Perpignand's fixing AR-126
145 "Collection of dependent objects"
147 Quoting 'patch implementing collection of dependent objects as per Hibernate documentation section 7.2'
150 "Cannot use webservices or XmlSerializer on classes derived from ActiveRecordValidationBase because of IDictionary PropertiesValidationErrorMessage"
152 - Applied Patrick Earl's patch, adding event ModelCreated that allows to re-configure the model before
153 generating the XML for NHibernate.
155 - Added HqlNamedQuery attribute and allowed to use the Import attribute at the assembly level
157 - Applied Brian Romanko's patch fixing AR-104
158 "IsUniqueValidator does not work properly with nullable primary keys"
160 - Add Count(ICriterion[] criteria) overrides to ActiveRecordMediator and ActiveRecordMediator.Generic (original patch from Andy W. Dobbels)
163 "Add support for the <Operation>AndFlush family of methods to ActiveRecordMediator"
165 - Applied Jan Persson's patch fixing AR-122
166 "Problems validating inherited properties when using generics"
168 - Applied Edward Kreis' patch fixing AR-124
169 "ActiveRecord OneToOne attribute's "constrained" parameter doesn't appears in a NHibernate mappings"
171 - Applied John Hurrell's patch fixing AR-123
172 "Additional OnFlush functionality"
174 - Exposed some IValidator's properties.
176 - Renamed IActiveRecordQuery.Target to IActiveRecordQuery.RootType
178 - Added SetRange to ProjectionQuery<,>
180 - Made HasMany a bit smarter when dealing with Map elements.
182 AR now can guess the IndexType, the MapType and the Table name from the IDictionary<,> property.
185 - AR-118 added NoSetter.LoweCase property access option.
187 - Fixed AR-117 "ActiveRecordBase CRUD Methods Ignore SessionScope FlushMode"
189 The operations Save, Create, Delete, Update will not flush the session anymore
190 The operations SaveAndFlush, CreateAndFlush, DeleteAndFlush, UpdateAndFlush will
192 - Removed HqlBasedQuery.Count operation as it didn't work for complex queries
194 - Fixed AR-110 "Support rollback on TransactionScope Dispose without commit."
196 Now you can create a TransactionScope defining the behavior
197 if the dispose is reached and neither a votecommit nor voterollback was called
199 - Applied Andrew Peters' (see AR-105) with the following changes
201 - [breaking change] Renames ActiveRecordBase.CountAll to ActiveRecordBase.Count
202 as several overloads are by criteria and IMHO Count is a better, more general name.
204 - Adds an overload of Count that accepts an ICriterion[] - Modified CountQuery
205 to use NHibernate 1.2 Projections
207 - Reimplements (http://support.castleproject.org//browse/AR-100) so that it uses
208 the new Count overload instead of FindAll.
210 - Filled in as many missing doc comments as I could before my eyes hurt :-)
212 - Renamed "criterias" to "criteria" in method signatures - "criterias" is not a word.
216 - Fixed AR-115 Exists always returns True for lazily-proxied classes
217 Changed FindByPK to use Get/Load according to its parameters.
219 - Included PrimaryKeyType.Custom and property CustomGenerator:Type
220 allowing one to supply its own generator
222 - Included PrimaryKeyType.Counter and PrimaryKeyType.Increment
224 - Applied patch from Drew Burlingame
225 Add ActiveRecordBase<T>.Exists(params ICriterion[] criterias)
226 Method also added to ActiveRecordBase.
228 - Applied patch by Andrew Peters fixing AR-97
229 "Pluralization of table names"
231 This patch introduces the pluralizeTableNames attribute on the configuration
232 which, if set to true, pluralizes the ActiveRecord types tables where no name
238 public class Student : ActiveRecordBase<Student>
240 The table name will be infered as 'Students'
243 - Applied patch by Ernst Naezer fixing AR-93
244 "Scaffolding / ARdatabind crash when Typeof is not supplied in the HasMany attribute."
246 - Applied Lee Henson's patch fixing AR-88
247 "Move GetFieldOrPropertyValue from ConfirmationValidator to AbstractValidator"
249 - Applied Lee Henson's patch fixing AR-86
250 "Expose DetachedCriteria on ActiveRecordBase<T>.SlicedFindAll"
252 - Fixed AR-84: ActiveRecord TransactionScope should export interface to set IsolationLevel
253 Now you can specify the isolation level when you create a TransactionScope
255 - Applied Carlos Ble's patch adding Replicate support to ActiveRecordBase
257 - Moved ProjectionQuery and ScalarProjectionQuery to Castle.ActiveRecord.Queries, with the rest of the queries.
259 - Added untyped projection support, using just ProjectionQuery<Post>, which uses object[] tuples.
261 - Added real projection support, which allows the following code:
262 ProjectionQuery<Post, PostTitleAndId> proj = new ProjectionQuery<Post, PostTitleAndId>(
263 Projections.Property("Title"), Projections.Property("Id"));
264 ICollection<PostTitleAndId> posts = proj.Execute();
265 foreach(PostTitleAndId titleAndId in posts)
267 PostsList.Add( new ListItem(titleAndId.Title, titleAndId.Id) );
271 - Renamed ProjectionQuery<T> ScalarProjectionQuery<T>, in preperation for real projections.
273 - Added DetachCrietia support in ARBase<T>, which allows integration with NQG, and in general enables taking advantage of the full criteria API.
274 Improved methods are FindOne, FindAll, FindFirst
276 - Move to used NHibernate 1.2 rev #2352
278 - Applied Josh Robb's patch adding a check for isWeb=true on the Session module.
280 - Returned to the default lazy false behavior.
282 - Will automatically initialize entities when loading outside of scope.
284 - Removed IModelNode since it was no longer of any value.
286 - Added XML Documentation to all public/ protected methods
288 - Moved to using NHibernate 1.2 beta 1
289 IEntityPersister instead of IClassPersister
290 I had some issues with Nullables.dll support, but mainly because the hard coded version number.
291 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.
293 I added type guessing to ISet<> (set), IList<> (bag), ICollection<> (bag), IDictionary<>(map)
295 The nicest new feature IMO is this:
297 ProjectionQuery<Blog, int> proj = new ProjectionQuery<Blog, int>(Projections.RowCount());
298 int rowCount = proj.Execute();
299 Assert.AreEqual(1, rowCount);
305 - Changed name of mapping files generated when isDebug=true. They now follow the NHibernate convention of name.hbm.xml
307 - Refactored: CompositeKey is not a class level attribute anymore
308 (minor breaking change)
313 public SomeClass Id { get/set }
318 public SomeClass Id { get/set }
321 - Added support for queries using the SQL language instead of HQL,
322 on classes derived from HqlBasedQuery (SimpleQuery, ScalarQuery, etc).
324 - Added ActiveRecordModel.GetModels(), which returns an array containing every registered ActiveRecordModel.
327 "Unique key on multiple columns"
329 Introduced UniqueKey on PropertyAttribute and FieldAttribute
331 - Introduced the following properties on PropertyAttribute and FieldAttribute:
338 "Allow users to specify autoImport"
340 Use the property UseAutoImport on ActiveRecordAttribute to control auto-import
342 - Resynched ActiveRecordAttribute with NHibernate <class> mapping. Added:
351 "Create property CustomPersister or Persister (Type) on ActiveRecordAttribute"
353 Added Persister property to ActiveRecordAttribute
355 - Applied Marc-André's patch fixing AR-79
356 "ValidateIsUnique not working with TransactionScope"
358 - Added XmlIgnore to IDictionary field on ARValidationBase
360 - Added support for generic abstract base class for a type hierarchy per discussions with Don
361 Morrison on IRC. The Generic Abstract Base class must conform to all the previous rules to
362 implement an abstract base class in a type hierarchy.
364 When initializing the class using the ActiveRecordStarter, you must use syntax similar to the
367 ActiveRecordStarter.Initialize( GetConfigSource(),
368 typeof(Model.GenericModel.Entity<>),
369 typeof(CompanyEntity),
370 typeof(PersonEntity));
372 Please see the GenericJoinedSubClassTestCase.cs for an example.
374 All rules about covariance and contravariance still apply.
376 - Applied Michael Morton's patch adding support to NHibernate's INamingStrategy.
377 This allow one to associate an implementation of INamingStrategy
378 through an attribute 'namingstrategytype' on activerecord config node
380 - Applied suggestion from Gokhan Altinoren fixing AR-77
381 "VisitPrimaryKey fails to generate correct <generator> xml
382 element for PrimaryKeyType.Identity when the system culture is set to Turkish"
384 - Applied Michael Morton's patch fixing AR-76
385 "SemanticVerifierVisitor Issue With NHibernate User Types"
387 - Refactored CompositeKey support. Now instead of using
390 public SomeClass Id { get/set }
393 public class SomeClass { ...
398 public SomeClass Id { get/set }
400 The old way is still supported though.
402 - Applied Freyr Magnússon's patch fixing AR-75
403 "SemanticVerifierVisitor causing fauly xml when using composit key"
405 - Added support for "ColumnPrefix" on [Nested] attribute. This change allows
406 a better usage of components, such as:
409 private String first, last;
411 [Property("first_name")] public string First { ... }
412 [Property("last_name")] public string Last { ... }
415 [ActiveRecord("children")]
417 private Name name, fatherName, motherName;
419 /* maps to database columns: first_name and last_name */
420 [Nested] Name Name { ... }
422 /* maps to database columns: father_first_name and father_last_name */
423 [Nested(ColumnPrefix="father_")] Name FatherName { ... }
425 /* maps to database columns: mother_first_name and mother_last_name */
426 [Nested(ColumnPrefix="mother_")] Name MotherName { ... }
429 - Review OneToOneAttribute test case, added one more unit test
431 - Removed OuterJoin attribute from OneToOneAttribute, replaced by Fetch property
433 - Added PropertyRef to OneToOneAttribute
435 - Applied patch to patch from josh robb - FindAllByProperty now handles null values internallly.
437 - Applied patch from josh robb - FindAllByProperty now handles null values internallly.
439 - Applied Freyr Magnússon's patch fixing misbehave related to abstract classes that defines different
440 database boundaries: "ActiveRecordStarter Initialize method assembply overloads fail
441 to add derived base types from config"
443 - Applied josh robb's patch "small fixup for length
444 validator error messages where there is only a minimum or maximum specified"
446 - Fixed AR-73: "Dynamic type adding after initialization"
448 - Added some logging. That's just a start: the idea is to increase AR verbosity
449 in order to reduce the need of debugging to diagnose problems.
451 - Refactored ActiveRecordStarter.Initialize to use ActiveRecordSectionHandler.Instance
453 - Introduced ActiveRecordSectionHandler.Instance to avoid repetitive code.
456 IConfiguration source = (IConfiguration) ConfigurationSettings.GetSection("activerecord");
458 (or similar) you can use
460 IConfiguration source = ActiveRecordSectionHandler.Instance;
462 Bare in mind that it looks for a section named "activerecord" on the configuration
463 file associated with the AppDomain, and throws an exception if it cannot be found.
465 - Applied Marc-Andre's patch fixing AR-68
466 "Make ActiveRecordValidation.ValidationErrorMessages virtual to simplify localisation"
468 - Added SessionScope.Current static property to gain access to the
469 current ISessionScope implementation
471 - Changed ISessionScope:
472 Added FlushAction property
473 Added Flush method to allow people to have more control on when to flush
475 - Applied patch by Michael Morton <mmorton@wickednite.com>. Quoting explanation:
477 Since the generic base class varies with the type parameter
478 (i.e. ActiveRecordBase<One> is not the same as ActiveRecordBase<Two>)
479 there is no easy way to specify multiple configurations using the
480 "type=" attribute. There is also no easy way to create multiple
481 subclasses as the documentation suggests for when using the non
484 However, there is an easy fix for this. Even though, for example,
485 these two base types are "different", ActiveRecordBase<One> and
486 ActiveRecordBase<Two>, they share the same generic type definition,
487 namely "ActiveRecordBase`1". With a small change to the function
488 "GetRootType" in "SessionFactoryHolder.cs" to make it look at the
489 generic type definition when dealing with a generic type, instead
490 of the generic type itself, you can once again easily access multiple databases.
493 You can now create multiple base types for each of your databases, such as...
495 class MyBaseOne<T> : ActiveRecordBase<T> { }
496 class MyBaseTwo<T> : ActiveRecordBase<T> { }
498 ... and then specify config for each by using the "type=" attribute like so ...
500 <config type="MyBaseOne`1, MyAssembly">
502 <config type="MyBaseTwo`1, MyAssembly">
505 Any subclasses of those will then get the correct configuration
506 settings. I have been using this change in my own builds for a
507 couple weeks now and it seems to be working ok. I have not
508 written any tests specifically for it, yet, but wanted to get
509 it out there in case anyone was interested.
511 - Applied patch by Brian Romanko <me@brianromanko.com> allowing the use
512 of different type for a Nested type (what NHibernate refers as a Component)
514 - Fixed AR-65: ActiveRecordBase<T> prevent users from using type inheritance
515 Refactored ActiveRecordBase<T> to extend ActiveRecordBase
516 Refactored ActiveRecordMediator<T> to extend ActiveRecordMediator
517 Could not do the same thing for the validation<T>
519 - Removed dependency on the Nullables library.
521 - Added native support for .NET 2.0 Nullables.
523 - Applied Brian Romanko <me@brianromanko.com> patch fixing enum support
525 - Fixed AR-62: DifferentDatabaseScope not switching between databases
527 - Introduced HybridWebThreadScopeInfo which, as the name implies,
528 uses both strategies to handle scope storage. Useful only for some complex scenarios
530 - Added support for RelationType.List.
532 - Simplified Exists<PkType> method on ActiveRecordBase<T>.
534 - Fixed AR-46 - OneToOne Attribute Does Not Support Specifying a Target Type
535 Added property MapType to OneToOne attribute
537 - Added ActiveRecordStarter.ResetInitializationFlag. Useful for test cases
538 that invoke Initialize multiple times
540 - Fixed AR-52 - Dont allow one to invoke Initialize more than once
542 - Added some flexibility into ActiveRecord Queries. They are now mutable,
543 which means we now have methods like 'SetParameter', 'SetParameterList' and
544 'SetRange'; and the 'Query' property is now read-write.
546 - Added support for query modifiers in ActiveRecord Queries. Any object implementing
547 IQueryModifier can be added to an ActiveRecordBaseQuery, using the
548 (protected) 'AddModifier' method. Parameters and query ranges
549 are implemented as query modifiers.
551 - Fixed AR-39: Added virtual to IsValid on ActiveRecordValidationBase/<T>
553 - Fixed AR-45: Added BindingFlags.NonPublic to DefaultBindingFlags on ActiveRecordModelBuilder
555 - Added Element to RelationAttribute, now can map relations of simple types
557 [HasMany(typeof(string), "ItemId", "Elements", Element = "Name")]
559 - Applied Antonio's patches
560 See http://forum.castleproject.org/posts/list/457.page and
561 http://forum.castleproject.org/posts/list/566.page
563 - Added Debug to IConfiguration Source. If set then XmlGenerationVisitor will save nhibernate mapping files to the AppDomain.BaseDirectory.
564 Usage: if you're the XmlConfigurationSource or the Section add the isDebug="true" attribute
566 - Added support to CompositeKeys as Foreign Keys (kudos to G. Richard Bellamy)
568 BelongsToAttribute - Added CompositeKeyColumns property.
569 HasAndBelongsToManyAttribute - Added CompositeKeyColumnKeys and CompositeKeyColumnRefs.
570 HasManyAttribute - Added CompositeKeyColumnKeys.
571 VersionAttribute - Added support for UnsavedValue.
572 SemanticVerifierVisitor - Added checks to ensure the composite key attributes are used properly.
573 XmlGenerationVisitor - Added output to support mapping the composite key attributes, as well as the unsaved-value attribute for Version.
575 In general, the changes are motivated by the need to have AR map to
576 legacy data, where composite keys are used as both primary and foreign
577 keys. The current AR support for CompositeKeys does not support
578 associations, this patch does.
580 There are some caveats when using this, which are driven by the NH
581 implementation. An assigned identifier (like all CompositeKeys and
582 many string PrimaryKeys) cannot be used to determine whether an instance
583 is detached or transient - since it's assigned by the application, it's
584 never null. Therefore, you must use another strategy, NH will misbehave
585 around the way it persists the instance to the database. That is why the
586 VersionAttribute had to have the support for UnsavedValue - the UnsavedValue
587 property of the Version is used by NH to determine the state of the instance.
589 For a discussion of the appropriate mappings and usage, see "Hibernate in Action," pgs. 330 - 335.
591 - Added SessionScopeWebModule which hooks BeginRequest and EndRequest initializing and
592 destructing a SessionScope properly. In order to use it add to httpModules section
597 <add name="ar.sessionscope" type="Castle.ActiveRecord.Framework.SessionScopeWebModule, Castle.ActiveRecord" />
601 - Added lifecycle methods that can be overriden:
608 - Applied patch from Ahmed Ghandour <aghandour@rydexinvestments.com> adding the methods
609 FetchCount and Exists to ActiveRecordBase
611 - Applied patch from Dave Godfrey fixing nested classes with relations problems (http://forum.castleproject.org/posts/list/457.page)
613 - Fixed a stack overflow exception when using IsUnique inside a session scope.
615 - You can now apply IsUnique to a property that also has PrimaryKey on it without problem.
617 - Resolved IsUnique bug with ActiveRecordValidationBase<> (it was non functional)
619 - Resolved test bugs with IsUnique for .net 1 and .net 2.
621 - Refactored query support:
622 - Introduced generic interface IActiveRecordQuery<T>, extending IActiveRecordQuery, for strongly-typed Execute() method support;
623 - Added IActiveRecordQuery.Enumerate(), for memory-intensive queries;
624 - Introduced HqlBasedQuery, decoupling ActiveRecordBaseQuery from HQL usage;
626 - Added ValidateCreditCard validation attribute.
628 - Added ValidateLength validation attribute.
630 - Added support for .Net 2.0 Connection Strings in the config file, using this method:
633 <add key="hibernate.connection.connection_string" value="ConnectionString = ${ConnectionStringKey}" />
637 <add name="ConnectionStringKey" connectionString="The Connection String"/>
640 This allows to take advantage of the connection string encryption as well as manage them using the built in tools.
642 - Added Exists<PkType>(PkType id) support to allow for checking of an object's existance
645 - Brought ActiveRecordBase.Generic inline with ActiveRecordBase feature wise.
646 Public Static Methods are now present on all ActiveRecordBase.Generic objects for common tasks such as Find, FindAll, etc.
648 <This is a breaking change.>
650 - Added support for NHibernate dynamic-update, dynamic-insert to ActiveRecordAttribute
652 - Simplified NHibernate markup generation for testing
654 Attributes are now written in one of two ways. Tags that have both an open and close
655 will have no space at the end of the attributes on the opening tag, while tags that
656 have no contents (<tag />) will be written with one space after the last attribute.
660 <openclose attrib="test" attrib2="test"></openclose>
662 <noclosetag attrib="test"/>
664 - Added ActiveRecordValidationBase<> to support validation on Generic AR classes
666 - Updated DeleteAll(Type targetType, IEnumerable pkValues) to support non int primary keys
668 - Add more hookable methods.
670 - Refactored Validation support to use NHibernate.IValidatable
672 - Brought ActiveRecordMediator.Generic inline with ActiveRecordMediator. This is a breaking
673 change (removal of a few methods/renaming of a few existing).
675 - Add import support (kudos to Dan Burnea)
676 [ActiveRecord, Import(typeof(ImportClassRow), "ImportClassRow")]
677 public class ImportClass : ActiveRecordBase
682 - Added FindAllByProperty, FindFirst and FindOne
684 - Added DeleteAll(type, where) (kudos to G. Richard Bellamy)
686 - Applied patch from Josh Robb. Added support for hooks on ActiveRecordBase<T>.
688 - DifferentDatabaseScope: so you can open a session using a different dbconnection
689 and persist your object model. Very experimental version
691 - Fixed: Support for multiple databases was completely broken.
693 - An implementation of ISessionFactoryHolder can be specified through the configuration, attribute sessionfactoryholdertype
696 - Added: ActiveRecordBase<T> - a generic form a ActiveRecordBase which relieves the need to re-write
697 all the base static methods to hide the type parameter and cast the result. Generics do it for you.
699 - Added: ActiveRecordStarter.CreateSchemaFromFile(filename) as an alternative to CreateSchema.
701 - Added: Support for composite keys - composite key class must be serializable and implement both Equals and GetHashCode.
702 Not complete support, missing the NHibernate key-many-to-one element in the composite key.
704 - Added: Support for Lazy loading class using BelongsTo. Will throw if there is a non virtual property that
707 - Closed: (AR-24) ValidationException must contain the validation error messages
709 - Support for fields in addition to properties
711 - Added [Any], [Any.MetaValue] and [HasManyToAny] attributes.
713 - Small improvement on ActiveRecordModelBuilder (less intensive on IsDefined/GetCustomAttribute)
715 - IThreadScopeInfo introduced. Two implementations: ThreadScopeInfo and WebThreadScopeInfo.
716 ThreadScopeInfo is the default implementation. You can use WebThreadScopeInfo by simply using
717 isWeb="true" on the configuration node:
719 <config isWeb="true">
722 Or you can provide your own implementation specifying the full type name
724 <config threadinfotype="my.threadinfotype, my.assembly">
730 - Transaction support: lots of minor fixes
732 - Added support for map relations.
733 Necessary to specify Index and IndexType on the HasMany (or HasAndBelongsToMany)
735 - IsUnique validator fix
741 Inner workings fully rewritten, better test cases coverage
749 Implemented support for Joined Subclasses
751 Implemented initial support for validations
757 Applied patch from John Morales (support for idbags)
763 Applied patch from John Morales (support for sets)
765 Applied suggestion and fixes from "jianxiao jiang" <jiangjianxiao@gmail.com> (NHibernateDelegate)
771 Applied patch from Luiz César Kuriki <luizck@gmail.com> in order to support NHibernate's Component feature
773 Applied modification suggested by Andrew Hallock and Craig Neuwirt in order to support HasOne relations.
779 Released (not changes to track yet)