Skip to content

Commit b18d14f

Browse files
committed
Merge pull request #2236 from tugberkugurlu/patch-1
Add OptOut breaking change to breaking changes doc
1 parent d36d9f4 commit b18d14f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/2.0-breaking-changes/nest-breaking-changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public class Foo
133133

134134
[ElasticProperty(Type = FieldType.Nested, IncludeInParent = true)]
135135
public List<Bar> Bars { get; set; }
136+
137+
[ElasticProperty(OptOut = true)]
138+
public bool HasDescription { get { return Description != null; } }
136139
}
137140
```
138141

@@ -159,6 +162,9 @@ public class Foo
159162

160163
[Nested(IncludeInParent = true)]
161164
public List<Bar> Bars { get; set; }
165+
166+
[Boolean(Ignore = true)]
167+
public bool HasDescription { get { return Description != null; } }
162168
}
163169
```
164170

0 commit comments

Comments
 (0)