EduHub.Data 1.59.12

There is a newer version of this package available.
See the version list below for details.
dotnet add package EduHub.Data --version 1.59.12
NuGet\Install-Package EduHub.Data -Version 1.59.12
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="EduHub.Data" Version="1.59.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EduHub.Data --version 1.59.12
#r "nuget: EduHub.Data, 1.59.12"
#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.
// Install EduHub.Data as a Cake Addin
#addin nuget:?package=EduHub.Data&version=1.59.12

// Install EduHub.Data as a Cake Tool
#tool nuget:?package=EduHub.Data&version=1.59.12

eduHub Data

A .NET (C#, Visual Basic.NET, etc) strongly-typed object model which provides in-memory, lazy-loading of eduHub CSV Data Sets.

on NuGet
Install-Package EduHub.Data

USAGE

Simple Query (C#)

All active students

// Create context
var Context = new EduHubContext();

// Build using query syntax
var activeStudents = (
    from st in Context.ST
    where st.STATUS == "ACTV"
    select new
    {
        StudentCode = st.STKEY,
        Name = $"{st.SURNAME}, {st.FIRST_NAME}",
        HomeGroup = st.HOME_GROUP,
        YearLevel = st.SCHOOL_YEAR
    });

Data set relationships can be navigated with additional data sets automatically loaded when needed

// Create Context
var Context = new EduHubContext();

// Build using query syntax
// ST.FAMILY_DF and DF.HOMEKEY_UM navigation properties used
var activeStudentTowns = (
    from st in Context.ST
    let family = st.FAMILY_DF
    let home = family.HOMEKEY_UM
    where st.STATUS == "ACTV"
    orderby st.SCHOOL_YEAR, st.HOME_GROUP
    select new
    {
        StudentCode = st.STKEY,
        HomeGroup = st.HOME_GROUP,
        YearLevel = st.SCHOOL_YEAR,
        Town = home.ADDRESS03,
        PostCode = home.POSTCODE
    });
PowerShell Example

Download the latest release for PowerShell

Add-Type -Path "EduHub.Data.dll";

$eduHubContext = New-Object EduHub.Data.EduHubContext;

$studentAddresses = $eduHubContext.ST `
    | Where-Object { $_.STATUS -eq "ACTV" } `
    | Select-Object -Property `
        STKEY,
        SURNAME,
        FIRST_NAME,
        HOME_GROUP,
        SCHOOL_YEAR,
        @{ Name = "BILLINGTITLE"; Expression = { $_.FAMILY_DF.BILLINGTITLE } },
        @{ Name = "ADDRESS01";    Expression = { $_.FAMILY_DF.BILLINGKEY_UM.ADDRESS01 } },
        @{ Name = "ADDRESS02";    Expression = { $_.FAMILY_DF.BILLINGKEY_UM.ADDRESS02 } },
        @{ Name = "ADDRESS03";    Expression = { $_.FAMILY_DF.BILLINGKEY_UM.ADDRESS03 } },
        @{ Name = "STATE";        Expression = { $_.FAMILY_DF.BILLINGKEY_UM.STATE } },
        @{ Name = "COUNTRY";      Expression = { $_.FAMILY_DF.BILLINGKEY_UM.COUNTRY_KGT.DESCRIPTION } };

$studentAddresses | Export-Csv StudentAddresses.csv -NoTypeInformation
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.64.19 543 7/1/2021
1.60.17 766 3/7/2019
1.60.16 671 2/9/2019
1.59.12 1,007 6/22/2018
1.59.11 1,012 12/19/2017
1.58.10 949 5/26/2017
0.9.8 990 12/1/2016
0.9.7-rc1 915 6/16/2016
0.9.6 1,275 1/18/2016
0.9.5 987 1/11/2016
0.9.2 950 12/21/2015
0.9.1-rc1 885 12/10/2015
0.9.0 1,445 11/25/2015
0.8.0 1,267 10/22/2015
0.7.5 1,506 10/1/2015
0.7.3 1,465 8/20/2015
0.7.2 1,407 8/18/2015
0.7.1 1,754 8/15/2015
0.7.0 1,472 8/14/2015