-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CreatedOn and ModifiedOn set successfully on node merge * Creating nodes with repo method, also sets the CreatedOn or ModifiedOn (only if enforced) * default timestamp keys updated * Single relation timestamps set * Merge/Create multiple relations now adds timestamp() * Merge/Create now sets timstamps on group relations * added tests for saving timestamps to the database * Updated the example * EnforceIdentifier fixed --------- Co-authored-by: Farhad Nowzari <[email protected]>
- Loading branch information
1 parent
bbe9e1d
commit 52a65a8
Showing
16 changed files
with
741 additions
and
69 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
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
18 changes: 18 additions & 0 deletions
18
src/Neo4j.Berries.OGM/Models/Config/TimestampConfiguration.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,18 @@ | ||
namespace Neo4j.Berries.OGM.Models.Config; | ||
|
||
public class TimestampConfiguration() | ||
{ | ||
internal bool Enabled { get; set; } | ||
/// <summary> | ||
/// Enforce the created timestamp key. When true, ModifiedTimestampKey will be also set on creating. | ||
/// </summary> | ||
public bool EnforceModifiedTimestampKey { get; set; } | ||
/// <summary> | ||
/// The key to use for setting the created timestamp. Default: createdOn | ||
/// </summary> | ||
public string CreatedTimestampKey { get; set; } = "createdOn"; | ||
/// <summary> | ||
/// The key to use for setting the updated timestamp. Default: modifiedOn | ||
/// </summary> | ||
public string ModifiedTimestampKey { get; set; } = "modifiedOn"; | ||
} |
Oops, something went wrong.