Current filter:
                                You should refresh the page.

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Phan,

                                In the How to implement OData4 service with XPO example, the database is created by calling the ConnectionHelper.EnsureDatabaseCreated method in the Global.asax.cs file. My XpoODataServiceCore example does not use this method. But, noting prevents you from using a similar code in the Program.cs or Startup.cs file to create your database.

                                In both the examples, the database is populated with sample data in the InitializeDatabase action of the ActionsController. If you need sample data, send a POST request to this action to generate it.