SmartDynamicBlazor 0.0.1.2-beta
See the version list below for details.
dotnet add package SmartDynamicBlazor --version 0.0.1.2-beta
NuGet\Install-Package SmartDynamicBlazor -Version 0.0.1.2-beta
<PackageReference Include="SmartDynamicBlazor" Version="0.0.1.2-beta" />
paket add SmartDynamicBlazor --version 0.0.1.2-beta
#r "nuget: SmartDynamicBlazor, 0.0.1.2-beta"
// Install SmartDynamicBlazor as a Cake Addin #addin nuget:?package=SmartDynamicBlazor&version=0.0.1.2-beta&prerelease // Install SmartDynamicBlazor as a Cake Tool #tool nuget:?package=SmartDynamicBlazor&version=0.0.1.2-beta&prerelease
SmartDynamicBlazor
Smart Dynamic Blazor is a component library built on top of Blazor Server, Entity Framework Core, Blazorise and Bootstrap it's a library that focuses on creating list and detail pages from given and existing Database.
Scafolding the database with EF Core is raccomanded and this componented hardly focused on DBFirst approach
Documentation
Get started now
0. Prerequisiti
Database SQL esistente
Progetto Blazor Server Side (versione core 3.1)
1. NuGet packages
installare i segeunti Nuget
- SmartDynamicBlazor
- Microsoft.EntityFrameworkCore.Design - ver 3.1.15
- Microsoft.EntityFrameworkCore.SqlServer - ver 3.1.15
- Microsoft.EntityFrameworkCore.SqlServer.Design - ver 3.1.15
2. Database Scaffold
impostare la string di connessione nel file appsettings.json
"ConnectionStrings":{
"DefaultConnection": "Data Source=SQLSERVERNAME;Initial Catalog=DATABASENAME;Integrated Security=True"
}
Aprire il terminal di Visual Studio. (Tasto destro sul progetto ⇒ Open in Terminal)
Note: se è la prima volta che usi i comandi di EntityFrameWork bisogna installarli.
dotnet tool install --global dotnet-ef --version 3.1.4
eseguire il comando:
dotnet ef dbcontext scaffold Name=DefaultConnection Microsoft.EntityFrameworkCore.SqlServer -o Models -f -d
3. Project Configuration
aggiungere il serivce in Startup.cs
services.AddDbContextFactory<AdventureWorksContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
aggiungere gli import al file _Imports.razor
@using SmartDynamicBlazor.Components
@using SmartDynamicBlazor.Classes
@using SmartDynamicBlazor.Components
@using SmartDynamicBlazor.Extensions
@using PROJECTNAME.Models
aggiungere i file css in _Host.cshtml
@* Carico gli styles SmartDynamicBlazor *@
<link href="_content/SmartDynamicBlazor/styles.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
@* Font Awesome *@
<link href="_content/SmartDynamicBlazor/lib/font-awesome/css/all.min.css" rel="stylesheet" />
4. Start using it!
implementare una pagina di lista e una di dettaglio. Ssempi pratici:
Creare la pagina di lista
<SmartList TDbContext="DBCONTEXT" TEntity="ENTITY" ></SmartList>
Creare la pagina di dettaglio.
<SmartDetail TDbContext="DBCONTEXT" TEntity="ENTITY" PrimaryKeys="@PrimaryKeys" ></SmartDetail>
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
- Blazorise (>= 0.8.7)
- Blazorise.Bootstrap (>= 0.8.7)
- Blazorise.Icons.FontAwesome (>= 0.8.7)
- EntityFramework (>= 6.4.4)
- Microsoft.AspNetCore.Components (>= 3.1.15)
- Microsoft.AspNetCore.Components.Web (>= 3.1.15)
- Microsoft.EntityFrameworkCore (>= 3.1.15)
- Microsoft.EntityFrameworkCore.DynamicLinq (>= 3.2.9)
- Microsoft.EntityFrameworkCore.SqlServer.Design (>= 1.1.6)
- System.Data.SqlClient (>= 4.8.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SmartDynamicBlazor:
Package | Downloads |
---|---|
SmartDynamicBlazor.Server
Estensione per i progetti Blazor.Server ModalDocument, SmartDocument, DocumentViewer Dll SmartDynamicBlazor.Server |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.3.3 | 167 | 5/24/2024 |
1.0.6.10 | 222 | 11/6/2023 |
1.0.5.24 | 165 | 9/22/2023 |
1.0.3.13 | 207 | 5/3/2023 |
1.0.0.65 | 307 | 2/8/2023 |
1.0.0.9 | 594 | 4/22/2022 |
1.0.0.8 | 587 | 4/15/2022 |
1.0.0.7 | 681 | 4/12/2022 |
1.0.0.6 | 641 | 2/11/2022 |
1.0.0.5 | 633 | 2/11/2022 |
1.0.0.4 | 601 | 2/9/2022 |
1.0.0.3 | 359 | 1/4/2022 |
1.0.0.2 | 333 | 1/4/2022 |
1.0.0.1 | 312 | 1/4/2022 |
1.0.0 | 326 | 1/3/2022 |
0.1.0-beta | 262 | 11/12/2021 |
0.0.2.74-beta | 188 | 1/3/2022 |
0.0.2.72-beta | 223 | 11/10/2021 |
0.0.1.7-beta | 228 | 5/27/2021 |
0.0.1.6-beta | 206 | 5/24/2021 |
0.0.1.5-beta | 210 | 5/24/2021 |
0.0.1.4-beta | 212 | 5/24/2021 |
0.0.1.3-beta | 229 | 5/20/2021 |
0.0.1.2-beta | 260 | 5/12/2021 |
0.0.1.1-beta | 232 | 5/11/2021 |
0.0.1-beta | 217 | 5/11/2021 |
Creata la documentazione e aggiornati nuget EF alla 3.1.15