This document is the change log for version 3.6.1 of CSLA .NET for Windows.
For a more complete list of changes, go to http://www.lhotka.net/cslabugs, select “all issues” and filter the status to “closed” and/or “checked in”.
Note: The VB version of CSLA .NET 3.6 is a work in progress. This is a community effort by volunteers, and it is not yet complete. When using CSLA .NET in a production setting, I recommend using the official C# release, and using the VB release primarily as a learning tool.
Click here for a list of known issues with this version.
Field Manager (090204)
Throw an InvalidOperationException when an attempt is made to call RegisterProperty() to register a property against a type that has already been instantiated. This will prevent an obscure and extremely hard to debug issue where PropertyInfo<T> objects would be “grafted” onto an existing type, but with invalid index values – resulting in exceptions or lost/corrupted field data in an object.
Rework the code for OnDeserialized() in BusinessBase, ReadOnlyBase, BusinessListBase and ExtendedBindingList to try and minimize the impact if someone forgets to invoke base.OnDeserialized() in their subclasses. This is still not foolproof, but should avoid some common issues. People should still call base.OnDeserialized() before doing any other work in their override of the method.
Fix null ref issue with the control.
Added a CheckRules() method to the ObjectFactory base class.
Async Factory Snippet (090129)
Added a snippet for an async factory method.
Fix a bug with the control where it was double-hooking the Format event.
The control was accidentally enabling the UI control for a read-only property. This change means that PropertyStatus will now explicitly disable the UI control if the property is read-only or the user isn’t authorized to change the property.
Field Manager (090123)
Add functionality in field manager so it uses reflection to force the initialization of static fields in every class in an inheritance hierarchy, thus eliminating the need to use the _forceInit technique described in Expert C# 2008 Business Objects.
Add a LoadProperty() method so a factory can load properties of a business object. This does require that the PropertyInfo<T> fields of the business object be accessible to the factory object, so they’ll probably need to be internal or public in scope.
Async DataPortal (090120)
Fix issue where an exception in a DataPortal_XYZ method would cause an exception in the async callback handler, so the exception didn’t flow back to the caller as expected.
Fix issues where ListChanged and ChildChanged would fire multiple times, and the behavior was inconsistent before/after serialization of the list object.
LINQ to CSLA (090105)
Add support for sorting a BusinessListBase list into a LinqBindingList through a LINQ query.
DataPortal - WcfProxy (090102)
Fixed some issues with WcfProxy so subclassing works as expected.
Add support for DateTimeOffset type.
Add ResetProxyType() method to reset the proxy type. You should call this method if your application changes the proxy type in configuration during runtime. The next data portal call will then cause the type value to be reevaluated.
Also, to make it easier to change the proxy type during runtime, ApplicationContext.DataPortalProxy is now a read-write property. Setting this property will automatically call DataPortal.ResetProxyType().
Make the GetFieldData() method public.
Fix issue with null values and string properties, so a string property set to a null is actually set to string.Empty.