Skipy.Core
1.0.0
See the version list below for details.
dotnet add package Skipy.Core --version 1.0.0
NuGet\Install-Package Skipy.Core -Version 1.0.0
<PackageReference Include="Skipy.Core" Version="1.0.0" />
paket add Skipy.Core --version 1.0.0
#r "nuget: Skipy.Core, 1.0.0"
// Install Skipy.Core as a Cake Addin
#addin nuget:?package=Skipy.Core&version=1.0.0
// Install Skipy.Core as a Cake Tool
#tool nuget:?package=Skipy.Core&version=1.0.0
Skipy
(`-').-> <-.(`-') _ _ (`-')
( OO)_ __( OO) (_) \-.(OO ) .->
(_)--\_) '-'. ,--. ,-(`-') _.' \ ,--.' ,-.
/ _ / | .' / | ( OO) (_...--'' (`-')'.' /
\_..`--. | /) | | ) | |_.' | (OO \ /
.-._) \ | . ' (| |_/ | .___.' | / /)
\ / | |\ \ | |'-> | | `-/ /`
`-----' `--' '--' `--' `--' `--'
Skipy is a tool to handle database updates on a project.
You can build or use the provider adapted to your project and use the Skipy cli to update your database.
CLI usage
status
: display the list of the updates with their status. ex: ./skipy status
or skipy.exe status
update <ID>
: update the database by selecting an update. ex: ./skipy update
or skipy.exe update
update -Id <ID>
: update the database to the specified update. ex: ./skipy update -Id 20210827163757
or skipy.exe update -Id 20210827163757
update -Name <Name>
: update the database to the specified update. ex: ./skipy update -Name MyUpdateName
or skipy.exe update -Name MyUpdateName
How to create a Skipy console for a project
- Create a new application console project
- Include the
Skipy
nuget and theSkipy.Core
nuget - Add a new module class which implements the
IModule
interface or use directly theModule<MyUpdateProvider>
class (the class MyUpdateProvider must implement the interfaceIUpdateProvider
) - In the
Main
method of your application, add the following lines to call the Skipy console :
public class Program
{
static void Main(string[] args)
{
// Create a new console
var console = new SkipyConsole();
// Add the module
console.AddProvider<Module<MyUpdateProvider>>();
// Start the console
console.Start(args);
}
}
Make a custom provider
Create a new project and add two classes :
a class which implements the
IUpdateProvider
to handle the database updatesa class which implements the
IModule
interface to declare a new module in the console.
Example (with the Entity Framework provider available in the Skipy.EntityFramework.Provider
nuget) :
// EntityFrameworkProvider is available in the
public class MyModule : Module<EntityFrameworkProvider<MyDbContext>>
{
public override void ConfigureServices(IServiceCollection serviceCollection, IConfiguration configuration)
{
base.ConfigureServices(serviceCollection, configuration);
// Database connection
serviceCollection.AddDbContext<MyDbContext>(options =>
options.UseSqlServer(configuration.GetConnectionString("DefaultConnection")));
// Update provider
serviceCollection.AddScoped<IUpdateProvider, EntityFrameworkProvider<MyDbContext>>();
}
}
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
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection (>= 5.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Spectre.Console (>= 0.42.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Skipy.Core:
Package | Downloads |
---|---|
Skipy
A simple console to handle the database updates. |
|
Skipy.EntityFramework.Provider
Entity framework provider for a Skipy console. |
GitHub repositories
This package is not used by any popular GitHub repositories.