Mappa 1.0.0
dotnet add package Mappa --version 1.0.0
NuGet\Install-Package Mappa -Version 1.0.0
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="Mappa" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mappa" Version="1.0.0" />
<PackageReference Include="Mappa" />
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 Mappa --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mappa, 1.0.0"
#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.
#addin nuget:?package=Mappa&version=1.0.0
#tool nuget:?package=Mappa&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Mappa
This package contains all the attributes that can be used to drive the behaviour of the Mappa source generator. This is the list of attributes provided:
Mappa
: Identify partial classes that are meant to be source generated by Mappa source generator;MappaIgnore
: Identify methods that should not be used for the mapping;MappaDependency
: Identify a property or a field inside a mapper class that can be used when identifying suitable mapping between two types;MappaSettings
: Allows to specify the behaviour while mapping sometimes (e.g. it allows to specify culture when mappingstring
s intoSystem.DateTime
and to specify the format when mappingstring
s intoSystem.Guid
);MappaUseProperty
: When mapping structured types (class
,struct
andrecords
) allows to specify which property use from the source property for a target property or constructor parameter;MappaAssignFromContext
: When mapping structured types (class
,struct
andrecords
) allows to specify which value from the context of typeMappaContext
use for a target property or constructor parameter;MappaInvokeMethodAttribute
: When mapping structured types (class
,struct
andrecords
) allows to specify that a property or attribute should be mapped by invoking a method.
This package also provide the MappaContext
class that can be used to pass contextual values to mappers via the MappaAssignFromContext
attribute.
Via MappaSettings
the following settings can be identified:
DateTimeFormat
: the format to use to mapstring
s intoSystem.DateTime
and vice versa;DateTimeOffsetFormat
: the format to use to mapstring
s intoSystem.DateTimeOffset
and vice versa;DateOnlyFormat
: the format to use to mapstring
s intoSystem.DateOnly
and vice versa;TimeOnlyFormat
: the format to use to mapstring
s intoSystem.TimeOnly
and vice versa;TimeSpanFormat
: the format to use to mapstring
s intoSystem.TimeSpan
and vice versa;GuidFormat
: the format to use to mapstring
s intoSystem.Guid
and vice versa;CultureInfoSetting
: define which culture use when mapping any of the above types (can be current culture, invariant culture or user defined culture);CultureName
: define the culture to use then user defined culture is selected byCultureInfoSetting
;ProtobufOptional
: enable or disable the ability of Mappa source generator to handleoptional
fields in protobuf models.
Relevant packages:
- Mappa source generator: source generator that allows to automatically generate mapping between classes and value types;
- Mappa Protobuf: methods to map
Google.Protobuf.WellKnownTypes
objects from Google.Protobuf package into common objects. - Mappa Protobuf dependency: utility methods to register the Protobuf mapper.
- Mappa Bson: methods to map
MongoDB.Bson
objects from MongoDB.Bson package into common objects. - Mappa Bson dependency: utility methods to register the Bson mapper.
You can find samples here. Visit the Mappa documentation to learn more.
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. 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. |
.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
- 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.0.0 | 78 | 20 days ago |