<p>The main web application of my company is crying out for a nifty set of libraries to make it in some way maintainable and scalable, and one of my colleagues has suggested CSLA. So I've bought the book but as :</p>

<blockquote>
  <p><em>programmers don't read books anymore</em></p>
</blockquote>

<p>I wanted to gauge the SOFlow community's opinion of it.</p>

<p>So here are my questions:</p>

<ol>
<li>How may people are using CSLA?</li>
<li>What are the pros and cons?</li>
<li>Does CSLA really not fit in with TDD?</li>
<li>What are my alternatives?</li>
<li>If you have stopped using it or decided against why?</li>
</ol>

[{'answer_id': 15258, 'author': 'slolife', 'author_id': 698, 'author_profile': 'https://Stackoverflow.com/users/698', 'pm_score': 3, 'selected': False, 'text': "<p>We started using CSLA because we thought it would help with our model layer.  Was sort of overkill and mostly all we use now is the SmartDate class, just because we're already linked to the library.</p>\n\n<p>We thought the validation interface would really help us enforce business rules but it didn't work well with WCF and serialization (we're still stuck on version 2.0.3.0, so things might have changed).</p>\n"}, {'answer_id': 15276, 'author': 'Eric Z Beard', 'author_id': 1219, 'author_profile': 'https://Stackoverflow.com/users/1219', 'pm_score': 4, 'selected': False, 'text': "<p>I had experience with it several years ago.  It is a brilliant architecture, but very complex, difficult to understand or change, and it's solving a problem that most of us developing web based applications don't necessarily have.  It was developed more for windows based applications and handling multi-level undo, with a heavy emphasis on transactional logic.  You will probably hear people say that since web applications are request-response at the page level, it is inappropriate, but with AJAX-style web apps maybe this argument doesn't hold so much water.</p>\n\n<p>It has a very deep object model, and it can take a while to really wrap your brain around it.  Of course, a lot can change in a few years.  I would be interested to hear other recent opinions.</p>\n\n<p>All things considered, it would not be my first choice of architecture.</p>\n"}, {'answer_id': 15323, 'author': 'Brad Leach', 'author_id': 708, 'author_profile': 'https://Stackoverflow.com/users/708', 'pm_score': 7, 'selected': True, 'text': '<p>Before I specifically answer your question, I\'d like to put a few thoughts down. Is CSLA right for your project? It depends. I would personally consider CSLA for desktop based applications that does not value unit testing as a high priority. CSLA is great if you want to easily scale to an n-tier application. CSLA tends to get some flack because it does not allow pure unit testing. This is true, however like anything in technology, I believe that there is <em>No One True Way</em>. Unit testing may not be something you are undertaking for a specific project. What works for one team and one project may not work for another team or other project.<br /></p>\n\n<p>There are also many misconceptions in regards to CSLA. It is not an ORM. it is not a competitor to NHibernate (in fact using CLSA Business Objects &amp; NHibernate as data access fit really well together). It formalises the concept of a <em>Mobile Object</em>.</p>\n\n<p><strong>1. How many people are using CSLA?</strong><br />\nBased on the <a href="http://forums.lhotka.net/forums/default.aspx" rel="noreferrer">CSLA Forums</a>, I would say there are quite a number of CSLA based projects out there. Honestly though, I have no idea how many people are actually using it. I have used it in the past on two projects.</p>\n\n<p><strong>2. What are the pros and cons?</strong><br />\nWhile it is difficult to summarise in a short list, here is some of the pro/con\'s that come to mind.<br />\n<em>Pros:</em></p>\n\n<ul>\n<li>It\'s easy to get new developers up\nto speed. The CSLA book and sample\napp are great resources to get up to speed.</li>\n<li>The Validation framework is truly world class - and has been "borrowed" for many many other non-CSLA projects and technologies.</li>\n<li>n-Level Undo within your business objects</li>\n<li>Config line change for n-Tier scalability (Note: not even a\nrecompile is necessary)</li>\n<li>Key technologies are abstracted from the "real" code. When WCF was\nintroduced, it had minimal impact on\nCSLA code.<br /></li>\n<li>It is possible to share your business objects between windows and web projects.</li>\n<li>CSLA promotes the normalization of <em>behaviour</em> rather than the normalization of <em>data</em> (leaving the database for data normalization).</li>\n</ul>\n\n<p><em>Cons:</em></p>\n\n<ul>\n<li>Difficulty in unit testing</li>\n<li>Lack of Separation of Concern (generally your business objects have data access code inside them).</li>\n<li>As CSLA promotes the normalization of <em>behavior</em>, rather than the normalization of <em>data</em>, and this can result in business objects that are named similarly, but have different purposes. This can cause some confusion and a feeling like you are not reusing objects appropriately. That said, once the physiological leap is taken, it more than makes sense - it seems inappropriate to structure objects the "old" way.</li>\n<li>It\'s not "in fashion" to build applications this way. You may struggle to get developers who are passionate about the technology.</li>\n</ul>\n\n<p><strong>3. After reading this does CSLA really not fit in with TDD?</strong><br />\nI haven\'t found an effective way to do TDD with CSLA. That said, I am sure there are many smarter people out there than me that may have tried this with greater success.</p>\n\n<p><strong>4. What are my alternatives?</strong><br />\nDomain-Driven-Design is getting big push at the moment (and rightfully so - it\'s fantastic for some applications). There are also a number of interesting patterns developing from the introduction of LINQ (and LINQ to SQL, Entity Framework, etc). Fowlers book <a href="https://rads.stackoverflow.com/amzn/click/com/0321127420" rel="noreferrer" rel="nofollow noreferrer">PoEAA</a>, details many patterns that may be suitable for your application. Note that some patterns are competing (i.e. Active Record and Repository), and thus are meant to be used for specific scenarios. While CSLA doesn\'t exactly match any of the patterns described in that book, it most closely resembles Active Record (although I feel it is short-sighted to claim an exact match for this pattern).</p>\n\n<p><strong>5. If you have stopped using it or decided against why?</strong><br />\nI didn\'t fully recommend CSLA for my last project, because I believe the scope of the application is too large for the benefits CSLA provides. <br />\nI would <em>not</em> use CSLA on a web project. I feel there are other technologies better suited to building applications in that environment.</p>\n\n<p>In summary, while CSLA is anything but a <em>silver bullet</em>, it is appropriate for some scenarios.</p>\n\n<p>Hope this helps!</p>\n'}, {'answer_id': 15340, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 4, 'selected': False, 'text': "<p>Yes, I (um, we) used it extensively to model our business process logic that was primarily databound forms in a windows forms application. The application was a trading system. CSLA is designed to be at that layer just below the UI.</p>\n\n<p>If you think about your standard complex line-of-business application you may have a form with many fields, many rules for those fields (including cross-field validation rules), you may invoke a modal dialog to edit some child object, you may want to be able to be able to cancel such dialogs and revert back to a previous state. CSLA supports this.</p>\n\n<p>It's cons are that it has a bit of a learning curve.</p>\n\n<p>The key thing to remember is to use CSLA to model how a <strong>user</strong> interacts with forms on some application. The most efficient way for me was to design the UI and understand it's flows, behaviour and validation rules before building the CSLA objects. Don't have your CSLA objects drive UI design.</p>\n\n<p>We also found it very useful to be able to use CSLA business objects server side to validate objects sent from clients.</p>\n\n<p>We also had built in mechanisms to perform validation asynchronously against web service (i.e. checking the credit limit range of a counterparty against a master).</p>\n\n<p>CSLA enforces a strong seperation between your UI, BusinessLogic and Persistance and we wrote a load of unit tests against them. It may not be strictly TDD because you are driving it from UI design, that doesn't mean it isn't testable.</p>\n\n<p>The only real alternative is creating your own model \\ business objects, but pretty soon you end up implementing features that CSLA offers out of the box (INotifyPropertyChanged, IDataErrorInfo, PushState, PopState etc.)</p>\n"}, {'answer_id': 15357, 'author': 'Jon Limjap', 'author_id': 372, 'author_profile': 'https://Stackoverflow.com/users/372', 'pm_score': 3, 'selected': False, 'text': '<p>Our company practised CSLA in some of its projects and some of the legacy projects remain to be CSLA. Other projects moved away from it because CSLA violated a plain and simple OOP rule: Single Responsibility Principle.</p>\n\n<p>CSLA objects are self-sustaining, e.g. they retrieve their own data, they manage their own behavior, they save themselves. Unfortunately this meant that your average CSLA object has at least three responsibilities -- representing the domain model, containing business rules, and containing data access definition (not the DAL, or data access implementation, as I previously stated/implied) all at the same time.</p>\n'}, {'answer_id': 32451, 'author': 'Simon Keep', 'author_id': 1127460, 'author_profile': 'https://Stackoverflow.com/users/1127460', 'pm_score': 3, 'selected': False, 'text': "<p>In defence of the CSLA, although I do agree with many of the comments that have been made particularly the unit testing one...</p>\n\n<p>My company used it extensively for a Windows Forms data entry application, with a high degree of success.</p>\n\n<ul>\n<li>It provided out of the box functionality that we didn't have the time or expertise to write ourselves.</li>\n<li>It standardised all of our business objects making maintenance easy and reducing the learning curve for our new developers.</li>\n</ul>\n\n<p>On the whole I would say that any issues that it caused were more than outwayed by the benefits.</p>\n\n<p>UPDATE: Further to this we are still using it for our windows forms app but experiments with using it for other applications such as web sites have shown that it is perhaps to cumbersome when you don't need much of its functionality and we are now investigating lighter weight options for these scenarios.</p>\n"}, {'answer_id': 121258, 'author': 'Joe', 'author_id': 12567, 'author_profile': 'https://Stackoverflow.com/users/12567', 'pm_score': 2, 'selected': False, 'text': "<p>I used it for a project a couple years ago. But when the project was done, I couldn't tell anyone what CSLA did for me. Sure, I inherited from its classes. But I was able to remove that inheritance from almost all classes with no restructuring. We had no use for the N-Tier stuff. The n-level undo was so slow that we couldn't use it. So I guess at the end it only helped us model our classes.</p>\n\n<p>Having said that, other teams have started  using it (after a horrid attempt by a team to create their own framework). So there has to be something worthwhile in there, because they're all smarter than me!</p>\n"}, {'answer_id': 121279, 'author': 'leppie', 'author_id': 15541, 'author_profile': 'https://Stackoverflow.com/users/15541', 'pm_score': 1, 'selected': False, 'text': "<p>I wanted to use it, but my then lead developer had the idea too much 'magic' was involved...</p>\n"}, {'answer_id': 121301, 'author': 'mattruma', 'author_id': 1768, 'author_profile': 'https://Stackoverflow.com/users/1768', 'pm_score': 2, 'selected': False, 'text': "<p>We've been using CSLA now for over five years, and we think it works great for constructing business applications.  Coupled with code generation you can create business objects in a relative short amount of time and focus your effort on the <strong>meat</strong> of the application.</p>\n"}, {'answer_id': 249877, 'author': 'Andy', 'author_id': 32478, 'author_profile': 'https://Stackoverflow.com/users/32478', 'pm_score': 4, 'selected': False, 'text': '<p>I have used CSLA for one project and it worked great and make things much simpler and neater.</p>\n\n<p>Instead of having your team writing business objects in their own different personal style, we know have a common standard to work against.</p>\n\n<p>//andy</p>\n'}, {'answer_id': 487628, 'author': 'Bob Par', 'author_id': 59749, 'author_profile': 'https://Stackoverflow.com/users/59749', 'pm_score': 3, 'selected': False, 'text': '<p>We use CSLA extensively. There are several benefits; first, I believe that every line of business developer should read Rocky Lhotka\'s book on Business Objects programming. I\'ve personally found it to be in my top 3 best programming books ever. CSLA is a framework  based on this book and using it gives your project access to very high level functionality like n-level undo, validation rules and scalability architecture while providing the details for you. Notice I said "providing" and not "hiding". I\'ve found that the best part of CSLA is that is makes you understand how all of these things are implemented down to the source code without making you reproduce them yourself. You can choose to use as many or few features as you need but I\'ve found that by staying true to the design patterns of the framework, it really keeps you out of trouble.\n--Byron</p>\n'}, {'answer_id': 531028, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>I'm a PHP guy. When we started building comparatively large scale applications with PHP, I started researching on lots of application frameworks and ORMs essentially in PHP world, then in Java and .NET. The reason I also looked at Java and .NET frameworks was not to blindly use any PHP framework, but first try to understand what is really going on, and what kind of enterprise level architectures are there. </p>\n\n<p>Because I haven't used CSLA in a real world application, I can't comment on its pros and cons, but what i can say is Lhotka is one the rare thinkers -I'm not saying just expert- in Software Architecture field. Although the name Domain Driven Design is coined by Eric Evans -by the way his book is also great and i humbly advise to read it- Lhotka was applying domain driven design for years. Having said that, whatever you think about his framework, benefit from his profound ideas in the field.</p>\n\n<p>You can find his talks on dotnetrocks.com/archives.aspx and videos from dnrtv.com/archives.aspx (search for Lhotka).</p>\n\n<p>@Byron\nWhat are the other two books you liked?</p>\n"}, {'answer_id': 720424, 'author': 'Johannes', 'author_id': 87471, 'author_profile': 'https://Stackoverflow.com/users/87471', 'pm_score': 3, 'selected': False, 'text': '<p>Not to take CSLA of the list, but before using it, research the benefits and make sure they really apply. Will your team be able to correctly/consistently implement it?  Remoting and portal dance needed? </p>\n\n<p>I think beyond all the theoretical ponder, it is all about clean/maintainable/extendable/testable code following basic proven patterns.</p>\n\n<p>I counted lines of code needed in a specific domain of a project converted from CSLA. Between all the different CSLA objects(readonly+editable+root+list combinations) and their stored procs it took about 1700 lines, versus a Linq2SQL + Repository implementation that took 180 lines. The Linq2SQL version consisted mostly of generated classes that your team doesn’t need to consume book to understand. And yes, I used CodeSmith to generate the CSLA parts, but I now believe in DRY code with single responsibility bits, and the CSLA implementation now looks to me like yesterday’s hero.</p>\n\n<p>As an alternative I would like to suggest looking into Linq2Sql/Entity Framework/NHibernate combined with Repository and UnitOfWork patterns. Have a look at <a href="http://www.codeplex.com/backgroundmotion" rel="noreferrer">http://www.codeplex.com/backgroundmotion</a>  </p>\n\n<p>Cheers!</p>\n'}, {'answer_id': 829758, 'author': 'ChrisSlee', 'author_id': 102239, 'author_profile': 'https://Stackoverflow.com/users/102239', 'pm_score': 2, 'selected': False, 'text': '<p>John,</p>\n\n<p>We have teams working in CSLA from 2 to 3.5 and have found it a great way to provide a consistant framework so all the developers are "doing it the same way".  It is great that most of the low value code is generated and we know when we run unit tests they work out of the box for all the CRUD stuff.  We find that our TDD really comes in with the refactoring we do to design, and CSLA doesn\'t prevent us from doing any of that.</p>\n\n<p>Chris</p>\n'}, {'answer_id': 839292, 'author': 'MatthewMartin', 'author_id': 33264, 'author_profile': 'https://Stackoverflow.com/users/33264', 'pm_score': 2, 'selected': False, 'text': "<p>I last tried to use CSLA in the stone age days of VB6.  In retrospect, it would have been more effective if I had used code generation.  If you don't have effective code generation tools and a strategy for fitting them into your workflow, they you should avoid frameworks like CSLA, otherwise the features you get from CSLA won't make up for the amount of time you spend writing n lines of code per table, n lines of code per column, etc.</p>\n"}, {'answer_id': 963463, 'author': "Spirit of '76", 'author_id': 119007, 'author_profile': 'https://Stackoverflow.com/users/119007', 'pm_score': 2, 'selected': False, 'text': '<p>I am using CSLA as the business object framework for a medium size project.  The framework has come a long way from the VB6 days and offers an extraordinary amount of flexibility and "out of the box" functionality. CSLA\'s mobile smart objects makes UI development much easier.  However, I agree with others it isn\'t the right tool for every situation.  There is definitely some overhead involved, but also a lot of power.  Personally, I am looking forward to using the CSLA Light with Silverlight. </p>\n\n<h2>Pros:</h2>\n\n<ul>\n<li>Data technology agnostic<sup>1</sup></li>\n<li>Large install base and it\'s FREE!!</li>\n<li>Stable and Logical framework</li>\n<li>Data Access code can be in your objects or in a separate assembly</li>\n<li>Property and Object Validation and Authorization</li>\n</ul>\n\n<h2>Cons</h2>\n\n<p><ul>\n<li>The code can be a lot to maintain<sup>2</sup></li>\n<li>Probably need a code generator to use effectively\n<li>Learning curve. The structure of CSLA objects are easy to grasp, but the caveats can create headaches.</p>\n\n<p></ul><br />\nI\'m not  sure about test driven design.  I don\'t unit test or test driven design (shame on me), so I don\'t know if unit tests are different than TDD, but I know that the most recent version of the framework comes with unit tests.</p>\n\n<p><br />\n<sup>1</sup> Good thing because data access technologies never stay the same for long.<br />\n<sup>2</sup> This has gotten better with recent versions of the framework.  </p>\n'}, {'answer_id': 1219364, 'author': 'Gregory Higley', 'author_id': 27779, 'author_profile': 'https://Stackoverflow.com/users/27779', 'pm_score': 5, 'selected': False, 'text': '<p>After reading all the answers, I\'ve noticed that quite a few people have some misconceptions about CSLA.</p>\n\n<p>First, <strong>CSLA is not an ORM</strong>. How can I say that so definitely? Because Rockford Lhotka has stated it himself many times in interviews on the <em>.NET Rocks</em> and <em>Hanselminutes</em> podcasts. Look for <em>any</em> episode where Rocky was interviewed and he\'ll state it in no uncertain terms. I think this is the most critical fact for people to understand, because almost all the misconceptions about CSLA flow from believing that it is an ORM or attempting to use it as one.</p>\n\n<p>As Brad Leach alluded in his answer, CSLA objects model behavior, although it may be more accurate to say that they model the behavior of data, since data is integral to them. CSLA is not an ORM because it\'s completely agnostic about how you talk to your data store. You <em>should</em> use some kind of data access layer with CSLA, perhaps even an ORM. (I do. I now use Entity Framework, which works beautifully.)</p>\n\n<p>Now, on to unit testing. I\'ve never had any difficulty unit testing my CSLA objects, because I don\'t put my data access code directly into my business objects. Instead, I use some variation of the repository pattern. <em>The repository is consumed by CSLA, not the other way around.</em> By swapping in a fake repository for my unit tests and using the local data portal, <em>BOOM!</em> it\'s simple. (Once Entity Framework allows the use of POCOs, this will be even cleaner.)</p>\n\n<p>All of this comes from realizing that CSLA is not an ORM. It might consume an ORM, but it itself is not one.</p>\n\n<p>Cheers.</p>\n\n<h2>UPDATE</h2>\n\n<p>I thought I\'d make a few more comments.</p>\n\n<p>Some people have said that CSLA is verbose compared to things like LINQ to SQL and so on. But here we\'re comparing apples to oranges. LINQ to SQL is an ORM. It offers some things that CSLA does not, and CSLA offers some things L2S does not, like integrated validation and <em>n</em>-tier persistence through the various remote data portals. In fact, I\'d say that last thing, <em>n</em>-tier persistence, trumps them all for me. If I want to use Entity Framework or LINQ to SQL over the net, I have to put something like WCF in between, and that multiplies the work and complexity enormously, to the point where I think it is <em>much</em> more verbose than CSLA. (Now, I\'m a fan of WCF, REST and SOA, but use it where you really need it, such as when you want to expose a service to third parties. For most line-of-business apps, it isn\'t really needed, and CSLA is a better choice.) In fact, with the latest version of CSLA, Rocky provides a <code>WCFDataPortal</code>, which I\'ve used. It works great.</p>\n\n<p>I\'m a fan of <a href="http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod" rel="noreferrer">SOLID</a>, TDD, and other modern software development principles, and use them wherever practical. But I think the benefits of CSLA outweigh some of the objections of those orthodoxies, and in any case I\'ve managed to make CSLA work quite well (and easily) with TDD, so that\'s not an issue.</p>\n'}, {'answer_id': 1438642, 'author': 'armannvg', 'author_id': 100937, 'author_profile': 'https://Stackoverflow.com/users/100937', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ve used CSLA.NET in few projects now, it was most successfull in a windows forms application which has rich databinding compatabilities (which asp.net application\'s don\'t have).</p>\n\n<p>It\'s main problem is the TDD support like people have been pointing out, this is because of the black-box like behaviour for the Dataportal_XYZ functions and it\'s inability to allow us to mock the data objects. There have been efforts to work around this issue with <a href="http://beyondthispoint.blogspot.com/2008/12/using-dependency-injection-with-cslanet.html" rel="nofollow noreferrer">this</a> being the best approach</p>\n'}, {'answer_id': 2361367, 'author': 'Luis', 'author_id': 284175, 'author_profile': 'https://Stackoverflow.com/users/284175', 'pm_score': 0, 'selected': False, 'text': '<p>CSLA is the best application framework that exists. Rocky LHotka is a very but very smart guy. He is writing the history of software development like Martin Fowler, David S Platt, but my favourites writers are Rod Stephens, Mathew mcDonalds Jeff Levinson thearon willis and Louis Davidson alias dr sql. :-) \nPros: All design patterns are applied.\nCons: Hard to learn, and few samples.</p>\n'}, {'answer_id': 2384898, 'author': 'Aaron', 'author_id': 286870, 'author_profile': 'https://Stackoverflow.com/users/286870', 'pm_score': 2, 'selected': False, 'text': "<p>I've been using CSLA since vb5, when it was more of a collection of patterns than it was a framework.  With the introduction of.NET, CSLA turned into a full-blown framework, that came with a hefty learning curve.  However, the CSLA addresses many things that all business developers tend to write themselves at some point (depending on project scope): validation logic, authentication logic, undo functionality, dirty logic, etc.  All of these things you get for free out of the box in one nice framework.  </p>\n\n<p>As others have stated, being a framework, it forces developers to write business logic in a similar fashion.  It also forces you to provide a level of abstraction for your business logic, so that not using a UI framework such as MVC, MVP, MVVM becomes not so important.  </p>\n\n<p>In fact, I would argue that the reason why so many of these UI patterns are so hyped up today (in the Microsoft world) is that people have been doing stuff incredibly wrong for so long (ie., using DataGrids in your UI, sprinkling your business logic everywhere. tisk tisk).  Design your middle tier (business logic) correctly from the start, you can reuse your middle tier in ANY UI.  Win Form, ASP.NET/MVC, WCF Service, WPF, Silverlight**, Windows Service, ....</p>\n\n<p>But aside from these, the huge payoff for me has been it's built-in ability to scale.  The CSLA uses a proxy pattern that is configurable via your config file.  This allows your business objects to make remote calls from server to server, without having to write one lick of code.  Adding more users to your system?  No problem, deploy your CSLA business objects to a new application server, make a config file entry change, and BAM!!  Instant scalability needs met.</p>\n\n<p>Compare this to using DTO's, storing your business logic on the client (whatever client that may be), and having to write each of your own CRUD methods as service methods.  YIKES!!!  Not saying this is a bad approach, but I wouldn't want to do it.  Not when there's a framework out there to essentially do it for me.</p>\n\n<p>I'm going to reiterate what other folks have said in that CSLA is NOT an ORM.  CSLA forces you to supply your business objects with data.  They do not care where you get your data.  You can use an ORM to supply your business objects with data.  You can also use raw ADO.NET, other services (RESTFUl, SOAP), excel spreadsheets, I can keep going here.</p>\n\n<p>As for your support for TDD, I have never tried using that approach with CSLA either.  I have taken the approach where I model my middle tier (ala business objects) using class and sequence diagrams, most often allowing use case, screen and/or process design to dictate.  Perhaps a bit old school, but UML has always served me very well in my design and development efforts.  I've successfully designed and developed very large and scalable applications still being used today.  And until WCF RIA matures, I'll be continuing to use CSLA..</p>\n\n<p>** with some work arounds</p>\n"}, {'answer_id': 3416779, 'author': 'Blake Niemyjski', 'author_id': 199701, 'author_profile': 'https://Stackoverflow.com/users/199701', 'pm_score': 2, 'selected': False, 'text': '<p>A lot of people recommend using Code Generation with CSLA. I\'d recommend checking out our set of supported templates as they will increase your ROI immensely.</p>\n\n<p>Thanks\n-Blake Niemyjski (Author of the <a href="http://www.codesmithtools.com/generate-csla-code-with-templates.aspx" rel="nofollow noreferrer">CodeSmith CSLA Templates</a>)</p>\n'}, {'answer_id': 4434342, 'author': 'Joe', 'author_id': 541207, 'author_profile': 'https://Stackoverflow.com/users/541207', 'pm_score': 2, 'selected': False, 'text': '<p>I\'m new to CSLA but I understand the concepts and I already understand that it\'s not an ORM tool so quit beating that damn drum folks. There are features of CSLA I like but using them feels a bit like there is a magician behind the curtain. I guess if you don\'t mind not knowing about how it works then you can use the objects and they work fine. </p>\n\n<p>There is a large learning curve for beginners and I think it would benefit greatly by having 5-15 min. videos like Microsoft has for learning the fundamentals. Or how about releasing a companion book with the code instead of getting the code released and taking months to get the book out? Just sayin Mr Lohtka... We started building our stuff before the book and I struggled the whole time. But like I said, I\'m new to it.</p>\n\n<p>We used CSLA. We made our objects fit their mold then used 10% of what the framework offered. Object level undo? Didn\'t use it. NTier flexibility? Didn\'t use it. We ended up writing enough business rule code that I thought the only thing we were getting out of CSLA was complexity. Some "long in the tooth" developers that know the framework used it as their hammer because they had a nail that needed hitting. CSLA was in their belt and my guess is a lot of proponents of the framework see things from that perspective too.</p>\n\n<p>I guess our seasoned developers are happy because it all makes sense to them. I guess if your organization doesn\'t have newbie programmers and you guys get bored by writing efficient and simple POCO objects with well formed patterns, then go for it. Use CSLA.</p>\n'}, {'answer_id': 5072844, 'author': 'Batman Beyond', 'author_id': 627491, 'author_profile': 'https://Stackoverflow.com/users/627491', 'pm_score': 3, 'selected': False, 'text': "<p>I joined a team where CSLA is mandatory.  We don't use the remote data portal which is the only reason I could agree for usage of this framework.  I never bought into the idea of CSLA so maybe that's why I have nothing but issues with it, sorry. </p>\n\n<p>A couple of the issues:</p>\n\n<p>I don't need a road block between my code and the .NET framework which is what this framework felt like to me.  I had a limited option of list objects, while I just had to ignore the rich list objects in the .NET framework.</p>\n\n<p>Ii is totally ridiculous that we had these read-only lists and then non read-only lists.  So if I had to add an item to the list I had to recreate the entire list...are you serious?</p>\n\n<p>Then csla wants to manage my object state which is fine but nothing is really exposed. Sometimes I want to change an object state manually instead of fetching it again which seems like what csla wants me to do.  I basically end up creating many properties to expose options csla didn't think I should have direct access to.</p>\n\n<p>Why can't I just instantiate an object?  We end up creating static methods which instantiates an object and passes it back...are you kidding me?</p>\n\n<p>Check the framework source code and it looks to heavy on the reflection code to me.</p>\n\n<p>Reasons to use csla:</p>\n\n<ul>\n<li>the straight .net framework is too powerful for you.</li>\n<li><p>your developers are not seasoned and can't grasp the concept of patterns then csla will pretty much have everyone on the same page.</p>\n\n<ol>\n<li>I don't need a road block between my code and the .NET framework...I am stuck with these list objects.</li>\n</ol></li>\n</ul>\n"}]
['https://Stackoverflow.com/questions/15241', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1116/']