-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
writer mapper building implemented directly in MapperFactory.
BuildMapper removed from IMappingAssociation interface
- Loading branch information
Showing
26 changed files
with
328 additions
and
802 deletions.
There are no files selected for viewing
60 changes: 0 additions & 60 deletions
60
src/EntityFunctors/Associations/ComponentCollectionAssociation.cs
This file was deleted.
Oops, something went wrong.
166 changes: 0 additions & 166 deletions
166
src/EntityFunctors/Associations/ComponentToComponentAssociation.cs
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
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
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
24 changes: 24 additions & 0 deletions
24
src/EntityFunctors/Associations/Impl/ComponentCollectionAssociation.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,24 @@ | ||
namespace EntityFunctors.Associations.Impl | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
|
||
public class ComponentCollectionAssociation<TSource, TSourceItem, TTarget, TTargetItem> | ||
: CollectionAssociationBase<TSource, TSourceItem, TTarget, TTargetItem>, IComponentAssociation | ||
where TSource : class | ||
where TSourceItem : class | ||
where TTarget : class, new() | ||
where TTargetItem: class, new() | ||
{ | ||
public TypeMapKey ComponentKey { get; private set; } | ||
|
||
public ComponentCollectionAssociation( | ||
Expression<Func<TSource, IEnumerable<TSourceItem>>> source, | ||
Expression<Func<TTarget, IEnumerable<TTargetItem>>> target) | ||
: base(source, target) | ||
{ | ||
ComponentKey = new TypeMapKey(SourceItemType, TargetItemType); | ||
} | ||
} | ||
} |
Oops, something went wrong.