Continuous Learning and Sharing of Team Foundation Server and Application Lifecycle Management RSS 2.0
# Sunday, May 03, 2009

It has been awhile since I have been able to work with Csla.  Recently I have gotten a chance to use it again.   The last time I used Csla was with version 2.0.  Rocky has made a lot of really cool changes since 2.0.  In this new project I am going to use version 3.6 so I wanted to learn how to do things the new way instead of the way I was doing it in version 2.0.  His project tracker example is very thorough and covers almost every possible way to use Csla 3.6 but I think it can be overwhelming to a new user even with the book.  I wanted to create a sample that is more simple so I could easily understand the changes and help my other team members get up to speed with Csla.  

Here’s some of the features I included:

  • Custom base classes – I wanted to create a custom layer between the Csla base classes and my implementation.  This is a good practice that allows framework changes in the base classes instead of modifying the Csla framework.  This should make upgrades to newer version easier.
  • New property declarations– uses new PropertyInfo class to manage the properties to help eliminate code.
  • EditLevels – While this is not new, I hadn’t used it before.
  • Child_xyz methods – new methods in Csla DataPortal for loading, update/insert, and delete for child objects.  Helps reduce code and provides more clear code.
  • WCF – It wasn’t clear to me how to switch between 2 tier and 3 tier modes using WCF so I wanted to implement it.  The .
  • BindingSource – This also isn’t new but a good practice.
  • Save Auto-Enabled – Using the bindingsource’s CurrentItemChanged event handler, it will update the Save button on row change of the grid.   The next version of this will use the Csla Action Extender component.

Here’s the download (includes csla dll).  Enjoy!

cslawcfexample.zip (657.59 KB)

Mike

Sunday, May 03, 2009 3:20:00 AM (Central Daylight Time, UTC-05:00)  #    Comments [0] -
CSLA.NET

Visual Studio ALM MVP
Microsoft Visual Studio ALM MVP
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Mike Douglas
Sign In
Statistics
Total Posts: 76
This Year: 0
This Month: 0
This Week: 0
Comments: 52
All Content © 2012, Mike Douglas
DasBlog theme 'Business' created by Christoph De Baene (delarou)