-
Notifications
You must be signed in to change notification settings - Fork 46
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
Jan Lenoch
committed
Jun 19, 2019
1 parent
e5db69c
commit d17d0ce
Showing
30 changed files
with
352 additions
and
245 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Business.Identity.Models; | ||
|
||
namespace Business.Services.Model | ||
{ | ||
/// <summary> | ||
/// Custom mapper between Identity user models and custom user models. | ||
/// </summary> | ||
public interface IUserModelService : IService | ||
{ | ||
/// <summary> | ||
/// Maps properties of a <see cref="MedioClinicUser"/> object to properties with the same name and type in the <paramref name="targetModelType"/> object. | ||
/// </summary> | ||
/// <param name="user">The source user object.</param> | ||
/// <param name="targetModelType">The type of the output object.</param> | ||
/// <param name="customMappings">Custom mappings of properties with different names and/or types.</param> | ||
/// <returns>The <paramref name="targetModelType"/> object with mapped properties.</returns> | ||
object MapToCustomModel(MedioClinicUser user, Type targetModelType, Dictionary<(string propertyName, Type propertyType), object> customMappings = null); | ||
|
||
/// <summary> | ||
/// Maps properties of the <paramref name="customModel"/> object to properties of the same name and type in the <see cref="MedioClinicUser"/> object. | ||
/// </summary> | ||
/// <param name="customModel">The source model object.</param> | ||
/// <param name="userToMapTo">The target Identity user object.</param> | ||
/// <param name="customMappings">Custom mappings of properties with different names and/or types.</param> | ||
/// <returns>The mapped <see cref="MedioClinicUser"/> object.</returns> | ||
/// <remarks>Maps properties by reference, does not copy them by value.</remarks> | ||
MedioClinicUser MapToMedioClinicUser(object customModel, MedioClinicUser userToMapTo, Dictionary<(string propertyName, Type propertyType), object> customMappings = null); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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.