Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Quick questions about Csla 5.xx #932

Open
Chicagoan2016 opened this issue Apr 15, 2020 · 2 comments
Open

Quick questions about Csla 5.xx #932

Chicagoan2016 opened this issue Apr 15, 2020 · 2 comments

Comments

@Chicagoan2016
Copy link

Chicagoan2016 commented Apr 15, 2020

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.

@rockfordlhotka
Copy link
Member

rockfordlhotka commented Apr 15, 2020

  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.

@Chicagoan2016
Copy link
Author

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants