- FieldAttribute.DefaultValue now works with all supported primitive types including Enums and Guids
- Domain model builder detects columns with names that differ only in letter case
- Overloads for upgrade hints constructors are added
- SessionExtensions.Remove for SessionOptions.ServerProfile is fixed
- TypeInfoCollection.FindInterfaces, FindImplementors, FindDescendants methods are fixed
- Explicit interface implementation analysis in ModelInspector is updated
- Persistent field discovery through indexer is fixed in LINQ
// MyEntity.MyField can be non-public now session.Query.All<MyEntity>.Where(e => e["MyField"] == value);
- Persistent.AdjustValue methods are added. This is useful in cases when you need an extension point to do some actions with field value after it is read from storage but not yet returned to the caller and vice versa.
public class MyEntity : Entity { // This is called on GetFieldValue protected override object AdjustFieldValue(FieldInfo field, object value) { if (field.Name != "MyField") return value; // Do some actions with value return value; } // This is called on SetFieldValue protected override object AdjustFieldValue(FieldInfo field, object oldValue, object newValue) { if (field.Name != "MyField") return value; // Do some actions with value before it is stored return value; }
Sunday, July 31, 2011DataObjects.Net 4.3 & 4.4 are updated to the latest revision
Today both stable versions of DataObjects.Net are updated to the revision 7685. This build includes the extension of Upgrade mechanism that was described in the previous post as well as the following changes:
Labels:
announcements,
releases
Subscribe to:
Post Comments (Atom)
|
SubscriptionBlog Archive
Labels
|
No comments:
Post a Comment