AnaSoft Inc. - ApiNCore VS2017 extension template for Web Api REST .NET Core solutions
ApiNCore
loading...

Overview

ApiNCore Project

ApiNCoreE is a solution template VS 2017 extension for building .NET Core API EF solutions.

Features:

  • Three layers: Api, Domain and Entity
  • Automapper
  • DI (.NET Core feature)
  • UnitOfWork
  • Generic Service and Repository with Entity Framework ORM
  • Sync and Async calls
  • Generic exception handler
  • Serilog logging with Console and File sinks
  • EF migration and seed from json objects
  • JWT authorization and authentication
  • XUnit tests run for InMemory database and real database. Once new solution is created XUnit tests can be executed!
  • Postman API tests for import as json file

ApiNCoreD is a solution template VS 2017 extension for building .NET Core API Dapper solutions.

Features:

  • Three layers: Api, Domain and Entity
  • Automapper
  • DI (.NET Core feature)
  • UnitOfWork
  • Generic Service and Repository with Dapper ORM
  • Sync and Async calls
  • Generic exception handler
  • Serilog logging with Console and File sinks
  • FluentMigrator runner migration and seed
  • JWT authorization and authentication
  • XUnit tests run for real database
  • Postman API tests for import as json file

Instructions:

1. Download and install the extensions (VSIX).
2. Open Visual Studio and select new ApiNCoreE (with ER ORM) or ApiNCoreD (with Dapper ORM) solution template from Visual C# templates section.
3. Nuget dependencies should be restored automatically with Internet connection. If not then you can use command 'Manage Nuget Packages -> Restore' and run for each project.
4. Once a solution is created the API service can run from Visual Studio with displaying the info page.
XUnit tests can be run as well against InMemory database (only ApiNCore with ER).
5. For production, the configuration file in API project appsettings(.Development).json has to be updated like below:
"UseInMemoryDatabase": false,
"YourSolutionNameDB": "your db connection string",

For ApiNCoreD extension (with Dapper ORM) use these settings:
"YourSolutionNameDBMigration": "your db connection string with no initial catalog specified",
"YourSolutionNameDB": "your db connection string",

6. API service run or XUnit tests run triggers migration and seed code which creates and populates initial tables.
7. XUnit integration tests can be executed successfully.
8. Import Postman_tests_collection.json to Postman application and execute tests successfully.

Screenshots

Download two full-featured VSIX extensions

Download content:

VS2017 ApiNCoreE.vsix extension with Entity Framework and XUnit project integration tests and Postman tests json file.

VS2017 ApiNCoreD.vsix extension with Dapper ORM and FluentMigrator and XUnit project integration tests and Postman tests json file.

Get both extensions for only $9 CAD.

Contact us

Please use Paypal "Return to merchant" link after your payment in order to download VSIXs.

If you have problems to download purchased VSIXs please contact us at apincore@anasoft.net.

Note that no support is available for generated code with these VSIX extensions; however please let us know about suggestions, issues or improvements regarding solutions generated by the VS extensions.

Thank you.
ApiNCore team


Extensions' icons thanks to cjdowner.

Note that there is no restriction to use, copy, modify, and distribute software created with this Visual Studio extension template. Created solution using this template may contain code with unintentional flaws or limitations. Please adjust created solution to your needs and test it before any production use. IN NO EVENT SHALL OWNER OF THIS EXTENSION BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE OWNER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.