How can I find out CSLA.NET Fast?

I would like to quickly learn CSLA.NET. What is your advice?

+5
source share
7 answers

The answer to this question depends on your definition of the words "learn" and "fast." In my experience, no one learned fast.

Having said that, I suggest you visit the Rockford Lhotka website and see the forums and books that are there.

http://www.lhotka.net/cslanet/
http://forums.lhotka.net/

+8
source

I would suggest downloading the CSLA source code and samples (especially the ProjectTracker sample) and taking a look at the code. The best way to learn something quickly is to build something.

, dataportal.

. CSLA:

[Serializable()]
public class Widget : Csla.BusinessBase<Widget>
{
    private Widget()
    {
    }
}

dataportal , . , , , . factory:

[Serializable()]
public class Widget : Csla.BusinessBase<Widget>
{
    private Widget()
    {
    }

    public static Widget Fetch(int id)
    {
        return Csla.DataPortal.Fetch<Widget>(new Csla.SingleCriteria<Widget, int>(id));
    }
}

dataportal, CSLA.

[Serializable()]
public class Widget : Csla.BusinessBase<Widget>
{
    private Widget()
    {
    }

    public static Widget Fetch(int id)
    {
        return Csla.DataPortal.Fetch<Widget>(new Csla.SingleCriteria<Widget, int>(id));
    }

    private void DataPortal_Fetch(Csla.SingleCriteria<Widget, int> criteria)
    {
        // Connect to database (or use ORM) and populate the object here based on the criteria.Value which is the id value
    }
}

, , - .. , /, ..

, .

http://lhotka.net/cslanet/Download.aspx

+23

. . : o/

CSLA.Net 4 , : o)

+8

CSLA 3.8. VB.NET, #. , SQL , Object Factory Many-to-Many. , , Microsoft PetShop Sample, ( -, ) , , CSLA. - , , CSLA.

CSLA : - Expert # 2008.

-Blake Niemyjski ( CodeSmith CSLA Templates)

+2

Rockford,

+1

- . , , , . NHibernate, Linq-to-Sql Microsoft Entity Framework - . . .

+1

Magenic (Rocky company) - CSLA , .

0

All Articles