I am hoping someone can answer this for me.
I posted about this a while back (http://forums.lhotka.net/forums/post/1655.aspx) but got no response, but I just ran into this same problem again today so I am going to try again.
In the templates that come with CSLA, specifically the EditableRoot, the "GetEditableRoot" factory method calls a Create method on the dataportal:
Public Shared Function GetEditableRoot(ByVal id As Integer) As EditableRoot
Return DataPortal.Create(Of EditableRoot)(New Criteria(id))
End Function
I have been changing these to call the DataPortal.Fetch.
Is it supposed to be calling Create, and if so why?
If you are calling a "get" isn't that really you fetching the object from the datasource?
Thanks.
Chris
Hi Rocky
How can we get access to the 2.1 branch? I have downloaded all the branches in CVS and can't
see a 2.1 version. I am currently using csCSLA20 - is this the latest?
Thanks
Bonio
From: Bonio [mailto:cslanet@lhotka.net]
Sent: Monday, July 31, 2006 6:40 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Create vs FetchHi Rocky
How can we get access to the 2.1 branch? I have downloaded all the branches in CVS and can't
see a 2.1 version. I am currently using csCSLA20 - is this the latest?
Thanks
Bonio
Copyright (c) Marimer LLC