QuickDBS.API
1.0.0
See the version list below for details.
dotnet add package QuickDBS.API --version 1.0.0
NuGet\Install-Package QuickDBS.API -Version 1.0.0
<PackageReference Include="QuickDBS.API" Version="1.0.0" />
paket add QuickDBS.API --version 1.0.0
#r "nuget: QuickDBS.API, 1.0.0"
// Install QuickDBS.API as a Cake Addin
#addin nuget:?package=QuickDBS.API&version=1.0.0
// Install QuickDBS.API as a Cake Tool
#tool nuget:?package=QuickDBS.API&version=1.0.0
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 in 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 the ConfigureServices method
var dbServer = new SQLServer("databasename"); // Use SQLite or MySQL if that's what you want services.AddSingleton(dbServer); APIs.Create(dbServer, DBType.SQLServer); // Change DBType according to the database used above.
Run the project once so that the Models, Controllers ad Web APIs are generated.
Remove or comment the
APIs.Create(dbServer, DBType.SQLServer);
so that it doesn't keep on repeating the generation process.That's it.
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
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.