-
-
Notifications
You must be signed in to change notification settings - Fork 158
Feature/#162 #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#162 #262
Conversation
…ceAttribute. Updates DefaultEntityRepository to check this value when including relationship entities and to throw if set to false.
…eAttribute property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for doing this. Only one minor comment and we're good to go.
@@ -20,6 +20,9 @@ public class Person : Identifiable, IHasMeta | |||
|
|||
[HasMany("todo-collections")] | |||
public virtual List<TodoItemCollection> TodoItemCollections { get; set; } | |||
|
|||
[HasOne("unincludeable-item", Link.All, false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to include the canInclude
parameter name?
[HasOne("unincludeable-item", Link.All, canInclude : false)]
These examples serve as documentation, so being explicit improves readability.
@@ -26,8 +28,7 @@ public override string ToString() | |||
|
|||
public override bool Equals(object obj) | |||
{ | |||
var attr = obj as RelationshipAttribute; | |||
if (attr == null) | |||
if (!(obj is RelationshipAttribute attr)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Closes #162
FEATURE
bump package versionthis will go out in the 2.2.2 release, bumped by make private service methods protected virtual #265