You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Microsoft DI Extensions](https://github.com/AutoMapper/AutoMapper.Extensions.Microsoft.DependencyInjection)
26
-
27
-
## Other discussions
28
-
https://gitter.im/AutoMapper/AutoMapper
29
25
30
26
## Filing issues
31
27
The best way to get your bug fixed is to be as detailed as you can be about the problem.
@@ -39,7 +35,6 @@ Here are questions you can answer before you file a bug to make sure you're not
39
35
GitHub supports [markdown](https://github.github.com/github-flavored-markdown/), so when filing bugs make sure you check the formatting before clicking submit.
40
36
41
37
## Contributing code and content
42
-
You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) before submitting your pull request.
43
38
44
39
Make sure you can build the code. Familiarize yourself with the project workflow and our coding conventions. If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests.
Copy file name to clipboardExpand all lines: ISSUE_TEMPLATE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
<!--
2
2
3
3
If you're new to AutoMapper, please ask a question on StackOverflow first and come back here if the people there consider it a bug.
4
-
If you've just upgraded, please read the corresponding upgrade guide first. Check https://docs.automapper.org/en/latest.
5
-
Try the [MyGet](https://docs.automapper.org/en/latest/The-MyGet-build.html) build.
4
+
If you've just upgraded, please read the corresponding upgrade guide first. Check https://docs.automapper.io/en/latest.
5
+
Try the [MyGet](https://docs.automapper.io/en/latest/The-MyGet-build.html) build.
6
6
Try to provide [a minimal, complete, and verifiable example](https://stackoverflow.com/help/mcve), preferably a [gist](https://gist.github.com/lbargaoanu/9c7233441c3a3413cc2b9b9ebb5964a9) that we can execute and see fail. [Here](https://gist.github.com/lbargaoanu/0cbc531306223f7ffc5468becf2642d6) is an example for ProjectTo.
By accessing code under the [Lucky Penny Software GitHub Organization](https://github.com/LuckyPennySoftware) (Lucky Penny Software) here, you are agreeing to the following licensing terms.
2
+
If you do not agree to these terms, do not access Lucky Penny Software code.
3
+
4
+
Your license to Lucky Penny Software source code and/or binaries is governed by the Reciprocal Public License 1.5 (RPL1.5) license as described here:
5
+
6
+
https://opensource.org/license/rpl-1-5/
7
+
8
+
If you do not wish to release the source of software you build using Lucky Penny Software source code and/or binaries under the terms above, you may use Lucky Penny Software source code and/or binaries under the License Agreement described here:
@@ -24,15 +23,23 @@ First, configure AutoMapper to know what types you want to map, in the startup o
24
23
25
24
```csharp
26
25
varconfiguration=newMapperConfiguration(cfg=>
26
+
{
27
+
cfg.CreateMap<Foo, FooDto>();
28
+
cfg.CreateMap<Bar, BarDto>();
29
+
}, loggerFactory);
30
+
31
+
// or more typically, using IServiceCollection
32
+
services.AddAutoMapper(cfg=>
27
33
{
28
34
cfg.CreateMap<Foo, FooDto>();
29
35
cfg.CreateMap<Bar, BarDto>();
30
36
});
37
+
31
38
// only during development, validate your mappings; remove it before release
32
39
#ifDEBUG
33
40
configuration.AssertConfigurationIsValid();
34
41
#endif
35
-
// use DI (http://docs.automapper.org/en/latest/Dependency-injection.html) or create the mapper yourself
42
+
// use DI (http://docs.automapper.io/en/latest/Dependency-injection.html) or create the mapper yourself
36
43
varmapper=configuration.CreateMapper();
37
44
```
38
45
Then in your application code, execute the mappings:
@@ -42,7 +49,7 @@ var fooDto = mapper.Map<FooDto>(foo);
42
49
varbarDto=mapper.Map<BarDto>(bar);
43
50
```
44
51
45
-
Check out the [getting started guide](https://automapper.readthedocs.io/en/latest/Getting-started.html). When you're done there, the [wiki](https://automapper.readthedocs.io/en/latest/) goes in to the nitty-gritty details. If you have questions, you can post them to [Stack Overflow](https://stackoverflow.com/questions/tagged/automapper) or in our [Gitter](https://gitter.im/AutoMapper/AutoMapper).
52
+
Check out the [getting started guide](https://automapper.readthedocs.io/en/latest/Getting-started.html). When you're done there, the [wiki](https://automapper.readthedocs.io/en/latest/) goes in to the nitty-gritty details. If you have questions, you can post them to [Stack Overflow](https://stackoverflow.com/questions/tagged/automapper).
46
53
47
54
### Where can I get it?
48
55
@@ -58,19 +65,21 @@ dotnet add package AutoMapper
58
65
59
66
### Do you have an issue?
60
67
61
-
First check if it's already fixed by trying the [MyGet build](https://automapper.readthedocs.io/en/latest/The-MyGet-build.html).
62
-
63
68
You might want to know exactly what [your mapping does](https://automapper.readthedocs.io/en/latest/Understanding-your-mapping.html) at runtime.
64
69
65
70
If you're still running into problems, file an issue above.
66
71
67
-
### License, etc.
72
+
If you are a paying customer, you can contact support via your account.
68
73
69
-
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
70
-
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
## All collections are mapped by default, even if they have no setter
6
6
7
-
You'll have to explicitly ignore those you don't want mapped. See also [this](https://github.com/AutoMapper/AutoMapper/issues/3449#issuecomment-651522397).
7
+
You'll have to explicitly ignore those you don't want mapped. See also [this](https://github.com/luckypennysoftware/AutoMapper/issues/3449#issuecomment-651522397).
8
8
9
9
## Matching constructor parameters will be mapped from the source, even if they are optional
0 commit comments