PageX.EntityFramework
1.0.0
See the version list below for details.
dotnet add package PageX.EntityFramework --version 1.0.0
NuGet\Install-Package PageX.EntityFramework -Version 1.0.0
<PackageReference Include="PageX.EntityFramework" Version="1.0.0" />
paket add PageX.EntityFramework --version 1.0.0
#r "nuget: PageX.EntityFramework, 1.0.0"
// Install PageX.EntityFramework as a Cake Addin
#addin nuget:?package=PageX.EntityFramework&version=1.0.0
// Install PageX.EntityFramework as a Cake Tool
#tool nuget:?package=PageX.EntityFramework&version=1.0.0
Introduction
Installation
Base package:
PM> Install-Package PageX
EntityFrameWork package:
PM> Install-Package PageX.EntityFrameWork
Basic IPageXAttribute implementation package:
PM> Install-Package PageX.Layout
Better appearance package:
PM> Install-Package PageX.Bootstrap
How to use
###1. For the easiest usage you should install all the packages.
###2. Extend the appsettings.json. Basic PageX config:
"PageXConfigs": {
"AttributesRequired": true,
"Layout": {
"Index": {
"CreateNew": "...",
"ToDetails": "...",
"ToEdit": "...",
"ToDelete": "...",
"ButtonSeparator": "..."
},
"Create": {
"Title": "...",
"Button": "...",
"BackToList": "..."
},
"Details": {
"Title": "...",
"ToEdit": "...",
"BackToList": "..."
},
"Edit": {
"Title": "...",
"Button": "...",
"BackToList": "..."
},
"Delete": {
"Title": "...",
"Question": "...",
"Button": "...",
"BackToList": "..."
}
}
}
Bootstrap PageX config:
"PageXBootstrapConfigs": {
"Header": {
"Src": "...",
"SmallTitle": "...",
"NormalTitle": "..."
},
"Menu": [
{
"Title": "...",
"MenuBlocks": [
{
"Title": "...",
"IconCss": "...",
"MenuItems": [
{
"Title": "...",
"IconCss": "...",
"Src": "...",
"ActivePath": "..."
},
...
]
},
...
]
},
...
],
"Footer": {
"Version": "...",
"Copyright": "..."
}
}
###3. Call the AddPageX function in the Startup - ConfigureServices.
services.AddPageX(options => {
options.AddEntityFrameworkServices();
options.AddSelectLists();
options.AddConfigs(Configuration.GetSection("PageXConfigs"));
options.AddBootstrapConfigs(Configuration.GetSection("PageXBootstrapConfigs"));
});
###4. Add attributes to your model properties.
- For hidden input:
[HiddenInput]
- For text input:
[TextInput]
- For number input:
[NumberInput]
- For range input:
[RangeInput(..., ...)]
- For checkbox input:
[CheckBoxInput]
- For select input:
[SelectInput(typeof(...))]
- For radio input:
[RadioButtonInput(typeof(...))]
- For e-mail input:
[EmailInput]
- For password input:
[PasswordInput]
- For date input:
[DateInput(InputTagType = "text")]
###5. Create the pages for your model. Create page content:
@page
@model PageX._PageXCreateModel<..., ...>
@{
ViewData["Title"] = "Create";
}
<partial name="Bootstrap/_PageXCreate" />
Delete page content:
@page
@model PageX._PageXDeleteModel<..., ...>
@{
ViewData["Title"] = "Delete";
}
<partial name="Bootstrap/_PageXDelete" />
Details page content:
@page
@model PageX._PageXDetailsModel<..., ...>
@{
ViewData["Title"] = "Details";
}
<partial name="Bootstrap/_PageXDetails" />
Edit page content:
@page
@model PageX._PageXEditModel<..., ...>
@{
ViewData["Title"] = "Edit";
}
<partial name="Bootstrap/_PageXEdit" />
Index page content:
@page
@model PageX._PageXIndexModel<..., ...>
@{
ViewData["Title"] = "Index";
}
<partial name="Bootstrap/_PageXIndex" />
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 | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.2
- Microsoft.EntityFrameworkCore (>= 2.2.4)
- PageX (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.15 | 554 | 12/8/2019 |
1.0.14 | 474 | 12/8/2019 |
1.0.13 | 496 | 12/6/2019 |
1.0.12 | 509 | 10/28/2019 |
1.0.11 | 507 | 10/28/2019 |
1.0.10 | 496 | 10/28/2019 |
1.0.9 | 487 | 10/28/2019 |
1.0.8 | 473 | 10/28/2019 |
1.0.7 | 484 | 10/28/2019 |
1.0.6 | 473 | 10/25/2019 |
1.0.5 | 490 | 10/25/2019 |
1.0.4 | 507 | 10/25/2019 |
1.0.3 | 484 | 10/25/2019 |
1.0.2 | 484 | 10/25/2019 |
1.0.1 | 523 | 10/25/2019 |
1.0.0 | 592 | 9/25/2019 |