Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 29, 2009
  1. Fixed bug in one-to-one lazy attribute

    True should be mapped as "proxy". Line of code copied from corrisponding location in many-to-one writer.
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
  2. @paulbatum
  3. @paulbatum
  4. @paulbatum
Commits on Dec 4, 2009
  1. @aaronjensen

    Merge issues

    aaronjensen authored
  2. @aaronjensen

    Fixing tests

    aaronjensen authored
  3. @aaronjensen
  4. @aaronjensen
Commits on Dec 3, 2009
  1. @jagregory
Commits on Nov 29, 2009
  1. @agross @paulbatum

    Reformatted code

    agross authored paulbatum committed
  2. @agross @paulbatum

    Adding two more extension methods for component list checks with cust…

    agross authored paulbatum committed
    …om setters
  3. @agross @paulbatum

    Adding specs for the PersistenceSpecificationExtensions

    agross authored paulbatum committed
  4. @agross @paulbatum
  5. @agross @paulbatum
  6. @agross @paulbatum

    Refactoring the PersistenceSpecification into separate classes, one f…

    agross authored paulbatum committed
    …or each type of mapping element to check, and a set of extension methods
Commits on Nov 25, 2009
  1. @paulbatum
  2. @dschilling @paulbatum

    Applied Huberto.Kusters' fix for issue 329.

    dschilling authored paulbatum committed
  3. @dschilling @paulbatum

    Added test for issue 329.

    dschilling authored paulbatum committed
  4. @paulbatum

    Fixed bug whereby the stored procedure methods (SqlInsert, SqlUpdate,…

    paulbatum authored
    … etc) would be ignored if used from an automapping override.
Commits on Nov 8, 2009
  1. @paulbatum
  2. @paulbatum

    Applied patch from arnetheduck that allows the name attribute to be s…

    paulbatum authored
    …et on key-property elements of a composite-id. Issue #346
Commits on Nov 7, 2009
  1. @paulbatum
  2. @paulbatum
Commits on Nov 6, 2009
  1. @paulbatum
Commits on Nov 3, 2009
  1. @paulbatum

    Modified ElementPart to use a ColumnMappingCollection so that users c…

    paulbatum authored
    …an control the column attributes. Resolves issue #341.
  2. @paulbatum

    Removed unused code.

    paulbatum authored
Something went wrong with that request. Please try again.