OnwardCare.DataModels 1.0.48

dotnet add package OnwardCare.DataModels --version 1.0.48
                    
NuGet\Install-Package OnwardCare.DataModels -Version 1.0.48
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OnwardCare.DataModels" Version="1.0.48" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OnwardCare.DataModels" Version="1.0.48" />
                    
Directory.Packages.props
<PackageReference Include="OnwardCare.DataModels" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OnwardCare.DataModels --version 1.0.48
                    
#r "nuget: OnwardCare.DataModels, 1.0.48"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OnwardCare.DataModels@1.0.48
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OnwardCare.DataModels&version=1.0.48
                    
Install as a Cake Addin
#tool nuget:?package=OnwardCare.DataModels&version=1.0.48
                    
Install as a Cake Tool

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

  1. Apply migrations and schema changes to your local database using the Onward API.

  2. Change directory to the project:

    cd OnwardCare.DataModels
    
  3. Build the project:

    dotnet build
    
  4. Scaffold the database

    Execute the following command to update the model classes and OnwardContext to 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 --force
    
  5. In 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

  1. Update the package version in OnwardCare.DataModels.csproj > Version

  2. Build the project:

    dotnet build -c Release
    
  3. Take the Nuget package from /bin/Release folder and submit it to Upload NuGet Package page.

  4. Give NuGet a few minutes to verify the package.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed