WebExtensions.UsePowerBuilderIntegrated(this MvcOptions options) Method
.NET Standard 2.x
Enables the methods of the Action in the Controller class to support the parameters of the type IDataStore , IDataStore<TModel> and IModelEntry<TModel>.
Namespace: DWNet.Data.AspNetCore
Assembly: DWNet.Data.AspNetCore.dll
Syntax
public static MvcOptions UsePowerBuilderIntegrated(this MvcOptions options);
Parameters
options MvcOptions
The MvcOptions object which provides programmatic configuration for the MVC framework.
Returns
Microsoft.AspNetCore.Mvc.MvcOptions
Returns the MvcOptions object.
Examples
The following code example demonstrates how to use the UsePowerBuilderIntegrated method in the ConfigureServices method of the Startup class.
using DWNet.Data.AspNetCore;
using Microsoft.Extensions.DependencyInjection;
namespace Appeon.ApiDoc.WebExtensionsExamples
{
public class Startup_UsePowerBuilderIntegratedExample
{
// Uses this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc(m =>
{
// Makes the methods of the Action in the Controller class support the
// parameters of the type IDataStore, IDataStore<T> and IModelEntry<TModel>.
m.UsePowerBuilderIntegrated();
});
}
}
}
Applies to
.NET Standard
2.x