Skip to content
Discussion options

You must be logged in to vote

I think you misunderstand how the data portal works, as I don't think there is any reason to do what you are describing.

The client-side data portal is where you invoke the data portal:

  var obj1 = DataPortal.Create<MyBusinessType>();
  var obj2 = await DataPortal.CreateAsync<MyBusinessType>();

The server-side data portal is where you implement data portal operation methods. Whether a data portal operation is implemented as an async method depends entirely on whether your method needs to invoke an async API to create/fetch/update the data.

  [Create]
  private void Create()
  {
    // create the object without calling any async APIs
  }

or

  [Create]
  private Task CreateAsync()
  {
    /…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bashinamwila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants