Saturday, October 03, 2009
« CSLA .NET 3.8.0 alpha 3 available | Main | Leveraging data annotation attributes in... »

CSLA .NET version 3.8 Beta 1 is now available for download.

Beta 1 brings the WPF PropertyStatus in line with the Silverlight version.

And Beta 1 adds support for the System.ComponentModel.DataAnnotations attributes. Data annotation attributes applied to properties are automatically added as rules using the CSLA .NET validation rules subsystem when ValidationRules.AddAnnotations() is called in your AddBusinessRules() override. If you don’t override AddBusinessRules() the base implementation calls AddAnnotations() on your behalf.

The C# ProjectTracker has been updated to work with 3.8.

Sunday, October 04, 2009 8:06:24 AM (Central Standard Time, UTC-06:00)
Questions on CSLA:

1. can it work with NHibernate as the DAL layer ?
2. what type of unit of work does it have ?

Where can I get an overview of it's capability ?

Thanks

Sunday, October 04, 2009 8:51:28 PM (Central Standard Time, UTC-06:00)
Rocky,

Any chance you can provide some more detail regarding the System.ComponentModel.DataAnnotations enhancements?
Would be good to see some example code and explanation of the implementation to gauge how efficient it is. I would imagine you are using statics off the type rather than evaluating attributes per instance of a class.

Also is there any way to register custom rules delegates for use with common annotations like [Required()]?
For example I use my own custom Required static rather than the Csla one for most of my validation.
How would I be able to hook this up to the Required data annotation attribute through Csla?

Cheers

Paul
Paul
Sunday, October 04, 2009 10:31:12 PM (Central Standard Time, UTC-06:00)
Yes, you can use nHinbernate as a DAL. To get more information about CSLA .NET please go to www.lhotka.net/cslanet and www.lhotka.net/cslanet/faq/ - and you might consider buying the "Expert 2008 Business Objects" book, which has information about CSLA .NET as well as general .NET architecture and coding concepts.
Friday, October 16, 2009 12:51:46 PM (Central Standard Time, UTC-06:00)
Hi,

Any thoughts on the new Client Profile in .NET 4.0? Will CSLA support this?

Maybe it’s time to separate the code into several projects to make it simpler to target different environments like Mono, clients, web servers, etc (for example: csla.dll, csla.client.dll, csla.server.dll, csla.server.web.dll, csla.client.wpf.dll, csla.client.silverlight.dll)? What are your thoughts on this?

Regards
Anders
Friday, October 16, 2009 3:12:46 PM (Central Standard Time, UTC-06:00)
The trick with that idea is that the actual assembly name has to be the same on both sides of the wire for .NET serialization to work.

So it is (maybe) possible to have two Csla.dll files that are different, as long as they appear the same to the .NET serializer. This is what I do in CSLA .NET for Silverlight so it can communicate with CSLA .NET for Windows - but that's using my own serializer too, and I don't know if such a thing would work with the normal .NET serializers.
Sunday, October 18, 2009 4:55:27 PM (Central Standard Time, UTC-06:00)
I should also point out that CSLA .NET 3.5 and higher do build on the client profile. You just need to use a compiler directive to do so, and that automatically filters out all the functionality that won't work without full .NET.

That is very likely the strategy that I'll be using with CSLA .NET 4.0 as well, but I suspect that more people will use this since the .NET 4.0 client profile appears to be a more practical platform than the 3.5 attempt.
Comments are closed.