KS.Fiks.Arkiv.Models.V1
1.0.1
dotnet add package KS.Fiks.Arkiv.Models.V1 --version 1.0.1
NuGet\Install-Package KS.Fiks.Arkiv.Models.V1 -Version 1.0.1
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="KS.Fiks.Arkiv.Models.V1" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KS.Fiks.Arkiv.Models.V1 --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KS.Fiks.Arkiv.Models.V1, 1.0.1"
#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 KS.Fiks.Arkiv.Models.V1 as a Cake Addin
#addin nuget:?package=KS.Fiks.Arkiv.Models.V1&version=1.0.1
// Install KS.Fiks.Arkiv.Models.V1 as a Cake Tool
#tool nuget:?package=KS.Fiks.Arkiv.Models.V1&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bruk av KS.Fiks.Arkiv.Models.V1
Modellene kan brukes direkte med import av namespace:
using KS.Fiks.Arkiv.Models.V1.Arkivering.Arkivmelding;
using KS.Fiks.Arkiv.Models.V1.Kodelister;
var arkivmelding = new Arkivmelding
{
///...
};
var sendtTilbakeKode = FlytStatusKoder.SendtTilbake.Verdi;
Skjema er inkludert in nuget-pakken og kan refereres med refleksjon:
using System.Reflection;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
using KS.Fiks.Arkiv.Models.V1.Arkivering.Arkivmelding;
void ValidationHandler(object? _, ValidationEventArgs args)
{
if (args.Severity == XmlSeverityType.Warning)
Console.Write("WARNING: ");
else if (args.Severity == XmlSeverityType.Error)
Console.Write("ERROR: ");
Console.WriteLine(args.Message);
}
var settings = new XmlReaderSettings
{
ValidationType = ValidationType.Schema
};
settings.ValidationEventHandler += ValidationHandler;
var modelsAssembly = Assembly
.Load("KS.Fiks.Arkiv.Models.V1");
var schemaNames = modelsAssembly.GetManifestResourceNames();
foreach (var name in schemaNames)
{
using var resourceStream = modelsAssembly.GetManifestResourceStream(name);
using var streamReader = new StreamReader(resourceStream!);
var xmlSchema = XmlSchema.Read(streamReader, ValidationHandler);
settings.Schemas.Add(xmlSchema!);
}
var arkivmelding = new Arkivmelding
{
//System = "system",
MeldingId = "meldingId"
};
using var stream = new MemoryStream();
var serializer = new XmlSerializer(arkivmelding.GetType());
serializer.Serialize(stream, arkivmelding);
stream.Position = 0;
var reader = XmlReader.Create(stream, settings);
var doc = new XmlDocument();
//Vil printe melding med ERROR som sier at `System` er forventet i arkivmeldingobjektet
doc.Load(reader);
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.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KS.Fiks.Arkiv.Models.V1:
Package | Downloads |
---|---|
KS.Fiks.Arkiv.Forenklet.Arkivering.V1
Forenklet arkivering for Fiks-Arkiv V1 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 68 | 6/9/2024 |
1.0.0 | 60 | 6/7/2024 |
0.9.23 | 6,384 | 2/19/2024 |
0.9.22 | 94 | 2/15/2024 |
0.9.21 | 839 | 1/4/2024 |
0.9.20 | 6,270 | 11/24/2023 |
0.9.19 | 242 | 11/6/2023 |
0.9.18 | 469 | 8/29/2023 |
0.9.17 | 355 | 8/16/2023 |
0.9.16 | 315 | 6/23/2023 |
0.9.15 | 438 | 5/24/2023 |
0.9.14 | 994 | 4/11/2023 |
0.9.13 | 328 | 3/23/2023 |
0.9.12 | 431 | 2/24/2023 |
0.9.11 | 235 | 2/24/2023 |
0.9.10 | 21,471 | 1/30/2023 |
0.9.9 | 401 | 1/10/2023 |
0.9.8 | 334 | 12/20/2022 |
0.9.7 | 305 | 12/12/2022 |
0.9.6 | 356 | 11/16/2022 |
0.9.5 | 466 | 11/4/2022 |
0.9.4 | 390 | 10/21/2022 |
0.9.3 | 9,191 | 9/21/2022 |
0.9.2 | 460 | 9/18/2022 |
0.9.1 | 395 | 9/6/2022 |
0.0.22 | 596 | 8/23/2022 |
0.0.21 | 390 | 8/22/2022 |
0.0.20 | 2,189 | 8/2/2022 |
0.0.19 | 691 | 7/6/2022 |
0.0.18 | 395 | 7/6/2022 |
0.0.17 | 413 | 7/5/2022 |
0.0.16 | 396 | 7/4/2022 |
0.0.15 | 2,298 | 7/3/2022 |
0.0.14 | 411 | 6/29/2022 |
0.0.13 | 422 | 6/27/2022 |
0.0.12 | 463 | 6/20/2022 |
0.0.11 | 414 | 6/15/2022 |
0.0.10 | 405 | 6/7/2022 |
0.0.9 | 2,831 | 5/25/2022 |
0.0.8 | 480 | 5/16/2022 |
0.0.7 | 505 | 4/26/2022 |
0.0.6 | 417 | 4/26/2022 |
0.0.5 | 703 | 4/5/2022 |
0.0.4 | 400 | 4/5/2022 |
0.0.3 | 417 | 4/4/2022 |
0.0.2 | 404 | 4/1/2022 |
0.0.2-rc.build.202204011319... | 112 | 4/1/2022 |
0.0.1 | 418 | 4/1/2022 |