Skip to content

Repository files navigation

Version: 1.0 ReleaseVersioncodecovLicense: GPL v3

Data models

Description

Simple data models that are often used in development and teaching.

PersonLib


Manual installation

Download library [zip | tar.gz] and unpack it to your project. Setup a reference and start using it in your project.

NuGet installation

NuGet

PM> Install-Package RaGae.Model.Person

Using Person

Personp=new();Personp=new("Max","Mustermann");Personp=new(){FirstName="Max",LastName="Mustermann"};p.FirstName;// Maxp.LastName;// Mustermannp.ToString();// Max MustermannPersonc=(Person)p.Clone();

AddressLib


Manual installation

Download library [zip | tar.gz] and unpack it to your project. Setup a reference and start using it in your project.

NuGet installation

NuGet

PM> Install-Package RaGae.Model.Address

Using Address

Addressa=new();Addressa=new("Musterstrasse","1"){City=new(1100,"Wien"),Country=new("AT","Austria")};Addressa=new(){Street="Musterstrasse",Number="1",City=new(){Zip=1100,Name="Wien"},Country=new(){Code="AT",Name="Austria"}};a.Street;// Musterstrassea.Number;// 1a.ToString();// Musterstrasse 1a.City.Zip// 1100a.City.Name // Wien
a.City.ToString();// 1100 Wiena.Country.Code// ATa.Country.Name // Austria
a.Country.ToString();// AT-WienAddressc=(Address)a.Clone();

Using City

Cityc=new();Cityc=new(1100,"Wien");Cityc=new(){Zip=1100,Name="Wien"};c.Zip;// 1100c.Name;// Wienc.ToString();// 1100 WienCityy=(City)c.Clone();

Using Country

Countryc=new();Countryc=new("AT","Austria");Countryc=new(){Code="AT",Name="Austria"};c.Code;// ATc.Name;// Austriac.ToString();// AT-AustriaCountryy=(Country)c.Clone();

R. GÄCHTER

About

Libraries which contains data model templates

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages