-
Notifications
You must be signed in to change notification settings - Fork 80
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
1 parent
4b54057
commit 8d05d91
Showing
6 changed files
with
166 additions
and
18 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
24 changes: 24 additions & 0 deletions
24
test/Redis.OM.Unit.Tests/Serialization/ComplexObjectWithCascadeAndJsonPath.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 @@ | ||
using Redis.OM.Modeling; | ||
|
||
namespace Redis.OM.Unit.Tests; | ||
|
||
[Document(StorageType = StorageType.Json)] | ||
public class ComplexObjectWithCascadeAndJsonPath | ||
{ | ||
[Indexed(CascadeDepth = 2)] public InnerObject InnerCascade { get; set; } | ||
[Indexed(JsonPath = "$.InnerInnerCascade", CascadeDepth = 2)] public InnerObject InnerJson { get; set; } | ||
} | ||
|
||
public class InnerObject | ||
{ | ||
[Indexed(JsonPath = "$.Tag")] public InnerInnerObject InnerInnerJson { get; set; } | ||
[Indexed(CascadeDepth = 1)] public InnerInnerObject InnerInnerCascade { get; set; } | ||
[Indexed(JsonPath = "$.Tag")] public InnerInnerObject[] InnerInnerCollection { get; set; } | ||
} | ||
|
||
public class InnerInnerObject | ||
{ | ||
[Indexed] public string Tag { get; set; } | ||
[Indexed] public int Num { get; set; } | ||
[Indexed] public string[] Arr { get; set; } | ||
} |