Open Closed

Insert data in to a entity from a page #606


User avatar
0
jon.hallam@managed-desktop.com created

Ive made a Folder called Tink and make a index.html and index.cshtml. Im passing parameters from the url with queryString.

I want to now add these query parameters to a database, then want to call an external service to get data based on them queryString parameters and store that in another Entity.

I would like to know where to write this code , how best to get DBContext and how to insert the data in to a entity.

  • ABP Framework version: v3.3.1
  • UI type:MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can call the methods of the application service layer in the web layer. In the application service layer, you can use repositoriy to read and write databases.

    I suggest you start with the documentation

    https://docs.abp.io/en/abp/latest/Domain-Driven-Design https://docs.abp.io/en/abp/latest/Application-Services https://docs.abp.io/en/abp/latest/Repositories

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07