Skip to content

Entity Framework-like Navigation Properties#19

Merged
Turnerj merged 58 commits intomasterfrom
ef-navigation-properties
Apr 15, 2018
Merged

Entity Framework-like Navigation Properties#19
Turnerj merged 58 commits intomasterfrom
ef-navigation-properties

Conversation

@Turnerj
Copy link
Copy Markdown
Member

@Turnerj Turnerj commented Apr 2, 2018

See #12

Turnerj added 7 commits April 1, 2018 00:15
Re-worked the process of retrieving navigation properties, now also can also pick up collections.
Added serialization support for navigation property collections.
Bug fix to DbEntityWriter (with the new database parameter for mutation)
New LINQ extension for searching by Ids without knowing the ID property name
And you know, actually writing part of the mutator that I thought I wrote earlier
@Turnerj Turnerj added the enhancement Enhancements & features label Apr 2, 2018
@Turnerj Turnerj added this to the Version 1 milestone Apr 2, 2018
@Turnerj Turnerj changed the title Entity Framework-like Navigation Properties (#12) Entity Framework-like Navigation Properties Apr 2, 2018
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2018

Codecov Report

Merging #19 into master will increase coverage by 2.87%.
The diff coverage is 96.1%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   90.29%   93.16%   +2.87%     
==========================================
  Files          41       50       +9     
  Lines        1133     1609     +476     
==========================================
+ Hits         1023     1499     +476     
  Misses        110      110
Impacted Files Coverage Δ
...ucture/Mutation/Mutators/EntityAttributeMutator.cs 86.36% <ø> (ø) ⬆️
...ramework/Infrastructure/DbEntityEntryExtensions.cs 100% <ø> (+72.72%) ⬆️
MongoFramework/Infrastructure/DbEntityEntry.cs 100% <100%> (ø) ⬆️
...re/DefinitionHelpers/UpdateDefinitionExtensions.cs 100% <100%> (ø) ⬆️
...ure/Mutation/Mutators/NavigationPropertyMutator.cs 100% <100%> (ø)
...ramework/Infrastructure/Mutation/EntityMutation.cs 100% <100%> (ø) ⬆️
...ructure/Linq/Processors/EntityMutationProcessor.cs 100% <100%> (ø) ⬆️
.../Mapping/Processors/NavigationPropertyProcessor.cs 100% <100%> (ø)
MongoFramework/MongoDbSet.cs 60.48% <100%> (+10.48%) ⬆️
...ework/Infrastructure/Mapping/DefaultMappingPack.cs 100% <100%> (ø) ⬆️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85e9918...ec0fdf7. Read the comment docs.

Turnerj added 28 commits April 5, 2018 22:48
Removing bits of code that are redundant or now irrelevant
Removed if-condition and removed additional serialization step
Also moves logic for persisting ids from the serializer to the collection (not 100% sure if I am happy with this part though)
Biggest difference is that it no longer supports updates to related entities (though still supports creation when applicable).
EntityNavigationCollection supports lazy loading and allows smarter serialization.
Entity relationship collection serialization now supports any ICollection, not just EntityNavigationCollection specific (eg. property can be initialized with List<TEntity>)
@Turnerj Turnerj merged commit 90abc22 into master Apr 15, 2018
@Turnerj Turnerj deleted the ef-navigation-properties branch April 15, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancements & features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant