MarimerLLC / cslaforum

Discussion forum for CSLA .NET

Home Page:https://cslanet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick questions about Csla 5.xx

Chicagoan2016 opened this issue · comments

Question
A few quick questions

  1. We can name server side Dataportal methods any valid identifiers as long as they have appropriate attributes?
  2. The Client side dataportal methods' names remain the same as in Csla 4.xx and earlier versions? we can't arbitrarily name them?
  3. In Csla 5.XX do the same rules apply to overloading Data Access operations? we have to define multiple criteria? (In our case sometimes we get a 'companyInfo' by EIN, in other cases it's by legal name. )

warm regards

Version and Platform
CSLA version: 5.xx
OS: Windows, Linux, iOS, Android, etc.
Platform: WinForms, WPF, ASP.NET Core, MVC, Xamarin, etc.

  1. That is correct
  2. I'm not sure what you mean? All logical server-side methods (better described as data portal operation methods) are now identified by attribute, regardless of whether you use the local or remote data portal configuration. The methods on the actual DataPortal and DataPortal<T> types are fixed of course, because they are part of the framework, not your code.
  3. Your data portal operation methods (decorated with Fetch, Update, and other attributes) can now accept multiple parameters as long as the parameter types are (a) serializable, or (b) injected using the Inject attribute.

@rockfordlhotka , Thank you Sir, that explains all of it.
2) I think some of the terms I use for Csla are 'dated' hehe , As I type this, and I am not making this up, your C# 2008 book is lying on the left side of my chair 😄 . I had to look something up a few days ago.
Kind regards