QuickDBS.API
1.0.1.7
See the version list below for details.
dotnet add package QuickDBS.API --version 1.0.1.7
NuGet\Install-Package QuickDBS.API -Version 1.0.1.7
<PackageReference Include="QuickDBS.API" Version="1.0.1.7" />
paket add QuickDBS.API --version 1.0.1.7
#r "nuget: QuickDBS.API, 1.0.1.7"
// Install QuickDBS.API as a Cake Addin
#addin nuget:?package=QuickDBS.API&version=1.0.1.7
// Install QuickDBS.API as a Cake Tool
#tool nuget:?package=QuickDBS.API&version=1.0.1.7
QuickDBS.API
A tiny library to generate models, controllers and there upon generate all the Web APIs from a supported QuickDBS database service. It imports all the Models from the table names of the selected database and generate controllers there upon.
Required Libraries
You need to use one of the supported QuickDBS database packages in order to generate Web APIs. Currently, you can generate for SQLite, SQL Server and MySql databases for which the packages are already available on the NuGet.
Usage
Create an empty ASP.NET Core Web API project.
Add dependency from NuGet to either QuickDBS.SQLite, QuickDBS.SQLServer or QuickDBS.MySQL.
Add
using QuickDBS;
to the Startup.cs file.In the Startup.cs class, add the following in the ConfigureServices method
var dbServer = new SQLServer("databasename"); // Use SQLite or MySQL if that's what you want services.AddSingleton(dbServer); APIs.Create(dbServer); // Run this line once and remove after generation of the Web APIs.
Run the project once so that the Models, Controllers and the Web APIs are generated.
Remove or comment the
APIs.Create(dbServer);
line so that it doesn't keep on repeating the generation process.That's it. Now, you should have all the models in the Models folder and controllers in the Controllers folder. Run the project and start using the Web APIs.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- QuickDBS.Core (>= 1.0.1.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.