Skip to content
Discussion options

You must be logged in to vote

You are correct, that the rules for method overloading of data portal operations is the same as for C# itself. So one way or another it is necessary for the two methods to have different parameter signatures.

As you note, a dummy parameter is one solution.

Another is to wrap the string parameters in some other type. You could do this by using (for example) the existing ReadOnlyBase type:

[Serializable]
public class DepartmentName : ReadOnlyBase<DepartmentName>
{
  // declare a managed string property for the department name
  // but make the setter _public_ so it can be loaded with the value
}

That's a workable solution that incurs a little overhead because it is a business type not a "pr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jhuerta3
Comment options

Answer selected by jhuerta3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants