CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

Using CSLA .NET with other tools like NHibernate and Code Generators.

Last post 05-21-2008, 6:00 AM by tarekahf. 3 replies.
Sort Posts: Previous Next
  •  05-19-2008, 6:29 PM 23678

    Using CSLA .NET with other tools like NHibernate and Code Generators.

    I am new to CSLA .NET and I have been using it for the past several weeks. I have only used Data Access techniques so far and developed a couple of live projects with it.

    I have introduced CSLA to the team members, and seems like they want to see if it is possible to use CSLA with some Code Generators  (such as Code Smith etc) and other tools like NHibernate to make the development work easier.

    From your experience, I appreciate your feedback. For example, Does it worth the effort to adopt and learn about such tools ?

    I am reading CSLA Book, and as per my understanding that using tools like NHibernate may end up violating the objective of True Object Oriented Programming, because they will blindly map the RDB to Objects (ROM) and then you may have to do additional effort to re-structure the data in your code to have the proper OO Representation of the Database.

    Your feedback will be appreciated.

    Tarek.

  •  05-19-2008, 7:14 PM 23679 in reply to 23678

    Re: Using CSLA .NET with other tools like NHibernate and Code Generators.

    In the upper right hand corner of the page there is a link to CodeGenerators


    The following link will take you to another thread:

    Code Generation for CSLA and NHibernate

    http://forums.lhotka.net/forums/post/3577.aspx
  •  05-20-2008, 1:32 AM 23681 in reply to 23679

    Re: Using CSLA .NET with other tools like NHibernate and Code Generators.

    Thanks a lot !

    As a mater of fact, I am not sure about the value of using tools like NHibernate.

    In the CSLA Book, it is trying to avoid using such tools, but in the threads you pointed out for me, there are a lot of people who are in favor of using NHibernate.

    So I am hoping to get feedback from different users about the real added value of using NHibernate.

    For Code Generators, the idea is clear, and I can see the benefit.

    Tarek.

  •  05-21-2008, 6:00 AM 23716 in reply to 23681

    Re: Using CSLA .NET with other tools like NHibernate and Code Generators.

    I had a quick look at NHibernate Start-up guide. From my first impression, following is my feedback:

    1. It is not very easy to learn,

    2. Has limited support for back-end Database Connectivity,

    3. Requires additional work to implement the ROM and then you may have to change the mapping made in your BO to meet the real world use case.

    4. Limited support for using Stored Procedures.

    5. You can do nearly the same with Typed Datasets,

    6. The new LINQ feature of .NET 3.x framework I think it does the same.

    I am not very happy with NHibernate.

    Tarek.

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems