-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b04b45f
commit e0b6c43
Showing
439 changed files
with
1,102 additions
and
18,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/Guid/Guid_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, System.Guid> | ||
{ | ||
public System.Guid Convert(TESTID source, System.Guid destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/Int/Int_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, int> | ||
{ | ||
public int Convert(TESTID source, int destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/Long/Long_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, long> | ||
{ | ||
public long Convert(TESTID source, long destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/NewId/NewId_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, string?> | ||
{ | ||
public string Convert(TESTID source, string destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/NullableString/NullableString_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, string?> | ||
{ | ||
public string? Convert(TESTID source, string? destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
10 changes: 10 additions & 0 deletions
10
src/StronglyTypedIds/Templates/String/String_AutoMapperTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
| ||
#if !FAKE_CODE | ||
public class AutoMapperTypeConverter : AutoMapper.ITypeConverter<TESTID, string> | ||
{ | ||
public string Convert(TESTID source, string destination, AutoMapper.ResolutionContext context) | ||
{ | ||
return source.Value; | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace AutoMapper; | ||
|
||
//FAKE STUB | ||
public interface ITypeConverter<T, T2> | ||
{ | ||
|
||
} | ||
|
||
//FAKE STUB | ||
public class ResolutionContext | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
public interface IStronglyTypedId<T> { | ||
//FAKE STUB | ||
public interface IStronglyTypedId<T> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.