Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jan 28, 2010
  1. Added simple work-a-round to quoting issues by using a global (static…

    U-BSOD\pruiz authored
    …) property.
  2. Output key class type when mapping SimpleAssociations.

    U-BSOD\pruiz authored
  3. Added AsSimpleAssociation to ManyToManyPart allowing mappings like ID…

    U-BSOD\pruiz authored
Commits on Jan 7, 2010
  1. @jagregory
  2. @jagregory

    Escape column names always. Closes #55

    jagregory authored
    Note: this will break anyone's code that is doing manual escaping, as it'll probably end up being double-escaped.
  3. @jagregory
  4. @jagregory
  5. @jagregory
Commits on Jan 6, 2010
  1. @jagregory

    Mapping composite user types with multiple columns now working. Resol…

    James Freiwirth authored jagregory committed
    …ves issues 129 and 365.
  2. @jagregory
  3. @jagregory
Commits on Dec 30, 2009
  1. @jagregory

    Rewrote rakefile to use Albacore

    jagregory authored
    Anyone using the rakefile to build will need to re-run InstallGems.bat to get the Albacore gem.
Commits on Dec 29, 2009
  1. @paulbatum

    Applied fix supplied by developingchris: fixed the buildutils.rb to r…

    paulbatum authored
    …eference the non-deprecated name for the active_support gem.
  2. @paulbatum

    Created a helper for specifying proxy conventions.

    paulbatum authored
    If the user's domain has a Mammal class that they wish to proxy using
    an IMammal interface, the proxy helper is used as follows:
  3. @paulbatum

    Minor fix to convenience method added as part of proxy convention cha…

    paulbatum authored
    …nges. Fix required due to big PropertyInfo refactoring.
  4. @paulbatum
  5. @paulbatum
  6. @paulbatum
  7. @paulbatum
  8. @loudej @paulbatum

    Fixed bug in one-to-one lazy attribute

    loudej authored paulbatum committed
    True should be mapped as "proxy". Line of code copied from corrisponding location in many-to-one writer.
  9. @paulbatum

    Changed PropertyPart to add the actual defaultColumn it has rather th…

    Chris Chilvers authored paulbatum committed
    …an creating a new column when setting the column name, this is to fix issue #354
  10. @paulbatum

    fixed security exception when trying to load exception types under .n…

    Chris Chilvers authored paulbatum committed
    …et 4
Commits on Dec 28, 2009
  1. @paulbatum

    Added a Castle.ByteCode reference to the example project so that it e…

    paulbatum authored
    …xecutes successfully on first build.
  2. @paulbatum

    Fixed bug where properties with a formula attribute would still get a…

    paulbatum authored
    … generated column element.
  3. @paulbatum
Commits on Dec 16, 2009
  1. @JamesKovacs
Commits on Dec 14, 2009
  1. @paulbatum

    Allow VerifyTheMappings to accept an instance.

    Barry Dahlberg authored paulbatum committed
  2. @ivanz @paulbatum

    Implement PersistenceSpecification more descriptive error reporting.

    ivanz authored paulbatum committed
        // Calories is of type float
        .CheckProperty (serving => serving.Nutrition.Calories, 400)
    "Expected '400' but got '400' for Property 'NutritionCalories'"
    "For property 'Nutrition.Calories' expected '400' of type 'System.Int32' but got '400' of type 'System.Single'."
       - Improve the error message
       - Fixup tests that check the exception message
       - Fix PropertyChain to append "." when appending the property chain together.
  3. @ivanz @paulbatum

    Implement property-level equality comparison specification in additio…

    ivanz authored paulbatum committed
    …n to the entity-level one and add tests.
    If there is no property-level equality comparer the code will fall-back to the entity-level comparer and if neither are set simply to Object.Equals.
    An example:
        new PersistenceSpecification<Food> (base.Session, new EntityLevelEqualityComparer ())
            .CheckProperty (food => food.Image, new Bitmap (20, 20), new BitmapEqualityComparer ())
            .CheckProperty (food => food.Brand, "banana")
            .VerifyTheMappings ();
    Here for the property Image the BitmapEqualityComparer will be used and for the property Brand the EntityLevelEqualityComparer.
  4. @ivanz @paulbatum

    Fix bug 54 so that it is now possible to use chained property referen…

    ivanz authored paulbatum committed
    …ces when testing components or one-to-one references. E.g.:
        new PersistenceSpecification<User> (base.Session)
            .CheckProperty (user => user.Preferences.DailyCaloriesTarget, 1500)
    Without this commit Fluent NHibernate will throw trying to set the value on "user.DailyCaloriesTarget" instead of “user.Preferences.DailyCaloriesTarget”.
    It is important to note that your POCOs have to internally initialize the nested objects/components at construction. Otherwise you should be using CheckReference instead.
    The fix involves the following refactoring:
        - Refactor Testing.Values.*Property to wrap a property Accessor instead of a PropertyInfo directly, because unlike the PropertyInfo the Accessor infrastructure already handles chained property references.
        - Refactor PersistenceSpecificationExtensions(...) to call ReflectionHelper.GetAccessor instead of ReflectionHelper.GetProperty(...) so that we get an Accessor instead of a PropertyInfo to store.
        - Fixup the unit tests to use Accessor instead of PropertyInfo.
  5. @paulbatum

    Fixed issue #355 - Failing tests due to abstract classes

    Chris Chilvers authored paulbatum committed
  6. @paulbatum

    Fixed issue #356 - Instances do not always reset Not correctly when s…

    Chris Chilvers authored paulbatum committed
    …etting a value that is already specified
  7. @paulbatum
Commits on Dec 9, 2009
  1. @paulbatum

    Added tests provided by Jon Kruger for problem where byte[] version c…

    paulbatum authored
    …olumns weren't getting mapped if the property was on a base class
Something went wrong with that request. Please try again.