OnwardCare.DataModels
1.0.48
dotnet add package OnwardCare.DataModels --version 1.0.48
NuGet\Install-Package OnwardCare.DataModels -Version 1.0.48
<PackageReference Include="OnwardCare.DataModels" Version="1.0.48" />
<PackageVersion Include="OnwardCare.DataModels" Version="1.0.48" />
<PackageReference Include="OnwardCare.DataModels" />
paket add OnwardCare.DataModels --version 1.0.48
#r "nuget: OnwardCare.DataModels, 1.0.48"
#:package OnwardCare.DataModels@1.0.48
#addin nuget:?package=OnwardCare.DataModels&version=1.0.48
#tool nuget:?package=OnwardCare.DataModels&version=1.0.48
OnwardCare.DataModels
Contains the data models and Entity Framework context for the Onward database.
Prerequisites
You will need the following things properly installed on your computer.
- .NET Core 7
- EF Core Tools
dotnet tool install --global dotnet-ef
NuGet Account
You will need access to the OnwardCare NuGet account to publish the package. First create an account on the NuGet website, and then contact Onward Engineering to be added as a package owner.
Scaffold Database
Apply migrations and schema changes to your local database using the Onward API.
Change directory to the project:
cd OnwardCare.DataModelsBuild the project:
dotnet buildScaffold the database
Execute the following command to update the model classes and
OnwardContextto the latest schema.dotnet ef dbcontext scaffold "User ID=onward-api;Password=;Server=127.0.0.1;Port=5432;Database=onward-api_development;Integrated Security=true;Pooling=true;" Npgsql.EntityFrameworkCore.PostgreSQL --output-dir Models --namespace OnwardCare.DataModels --context-namespace OnwardCare.DataModels --context OnwardContext --no-onconfiguring --data-annotations --forceIn most cases, you don't need all the models to be up-to-date with the latest schema. Remove unneeded changes and only commit what you need.
Publish to Nuget
Update the package version in
OnwardCare.DataModels.csproj> VersionBuild the project:
dotnet build -c ReleaseTake the Nuget package from
/bin/Releasefolder and submit it to Upload NuGet Package page.Give NuGet a few minutes to verify the package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- EFCore.NamingConventions (>= 7.0.2)
- Microsoft.EntityFrameworkCore (>= 7.0.2)
- Microsoft.EntityFrameworkCore.InMemory (>= 7.0.2)
- Microsoft.EntityFrameworkCore.Relational (>= 7.0.2)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 7.0.1)
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.48 | 153 | 6/25/2026 |
| 1.0.47 | 156 | 2/23/2026 |
| 1.0.46 | 121 | 2/19/2026 |
| 1.0.45 | 108 | 2/17/2026 |
| 1.0.44 | 135 | 1/27/2026 |
| 1.0.43 | 140 | 1/21/2026 |
| 1.0.42 | 291 | 5/28/2025 |
| 1.0.41 | 242 | 3/27/2025 |
| 1.0.40 | 230 | 11/15/2024 |
| 1.0.39 | 205 | 11/7/2024 |
| 1.0.38 | 167 | 10/31/2024 |
| 1.0.37 | 203 | 10/18/2024 |
| 1.0.36 | 194 | 10/11/2024 |
| 1.0.35 | 260 | 9/9/2024 |
| 1.0.34 | 173 | 9/6/2024 |
| 1.0.33 | 183 | 9/6/2024 |
| 1.0.32 | 190 | 9/6/2024 |
| 1.0.31 | 189 | 7/9/2024 |
| 1.0.30 | 178 | 7/9/2024 |
| 1.0.29 | 239 | 5/21/2024 |