From a46e55ab0a617883685da30d6de531db45bcc8b6 Mon Sep 17 00:00:00 2001 From: CIRCLES ARROWS LIMITED <31648959+circles-arrows@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:49:27 +0800 Subject: [PATCH] v1.1.3 --- Blueprint41.Build/Blueprint41.Build.csproj | 4 +- .../Blueprint41.MemgraphDriver.csproj | 4 +- .../Properties/AssemblyInfo.cs | 6 +- .../Blueprint41.Neo4jDriver.v3.csproj | 4 +- .../Properties/AssemblyInfo.cs | 6 +- .../Blueprint41.Neo4jDriver.v4.csproj | 4 +- .../Properties/AssemblyInfo.cs | 6 +- .../Blueprint41.Neo4jDriver.v5.csproj | 4 +- .../Properties/AssemblyInfo.cs | 6 +- Blueprint41.UnitTest/Entities/Movie.cs | 6 +- Blueprint41.UnitTest/Entities/Person.cs | 5 +- Blueprint41.UnitTest/Entities/Restaurant.cs | 3 +- Blueprint41/Blueprint41.csproj | 4 +- Blueprint41/Core/EntityCollection(Of T).cs | 1 + .../DatastoreTemplates/Domain_Data_Entity.cs | 676 ++++++++---------- .../DatastoreTemplates/Domain_Data_Entity.tt | 8 +- Blueprint41/Properties/AssemblyInfo.cs | 6 +- 17 files changed, 346 insertions(+), 407 deletions(-) diff --git a/Blueprint41.Build/Blueprint41.Build.csproj b/Blueprint41.Build/Blueprint41.Build.csproj index 42e42c54..e995f27b 100644 --- a/Blueprint41.Build/Blueprint41.Build.csproj +++ b/Blueprint41.Build/Blueprint41.Build.csproj @@ -13,12 +13,12 @@ - 1.1.2 + 1.1.3 Blueprint41.Build Blueprint41.Build Circles Arrows Limited Code generator needed to generate Type-safe classes for Blueprint41 - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41.Neo4jDriver.Memgraph/Blueprint41.MemgraphDriver.csproj b/Blueprint41.Neo4jDriver.Memgraph/Blueprint41.MemgraphDriver.csproj index bb380f49..dba665bd 100644 --- a/Blueprint41.Neo4jDriver.Memgraph/Blueprint41.MemgraphDriver.csproj +++ b/Blueprint41.Neo4jDriver.Memgraph/Blueprint41.MemgraphDriver.csproj @@ -21,12 +21,12 @@ - 1.1.2 + 1.1.3 Blueprint41.MemgraphDriver Blueprint41.MemgraphDriver Circles Arrows Limited Driver needed to connect to Neo4j using Blueprint41 - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41.Neo4jDriver.Memgraph/Properties/AssemblyInfo.cs b/Blueprint41.Neo4jDriver.Memgraph/Properties/AssemblyInfo.cs index 58c58e25..1eadf2ae 100644 --- a/Blueprint41.Neo4jDriver.Memgraph/Properties/AssemblyInfo.cs +++ b/Blueprint41.Neo4jDriver.Memgraph/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("CIRCLES ARROWS LIMITED")] [assembly: AssemblyProduct("Blueprint41 Neo4j Driver v5")] -[assembly: AssemblyCopyright("Copyright © 2017, 2022")] +[assembly: AssemblyCopyright("Copyright © 2017, 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -30,5 +30,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.3.0")] +[assembly: AssemblyFileVersion("1.1.3.0")] diff --git a/Blueprint41.Neo4jDriver.v3/Blueprint41.Neo4jDriver.v3.csproj b/Blueprint41.Neo4jDriver.v3/Blueprint41.Neo4jDriver.v3.csproj index e4083aec..45f523d8 100644 --- a/Blueprint41.Neo4jDriver.v3/Blueprint41.Neo4jDriver.v3.csproj +++ b/Blueprint41.Neo4jDriver.v3/Blueprint41.Neo4jDriver.v3.csproj @@ -21,12 +21,12 @@ - 1.1.2 + 1.1.3 Blueprint41.Neo4jDriver.v3 Blueprint41.Neo4jDriver.v3 Circles Arrows Limited Driver needed to connect to Neo4j using Blueprint41 - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41.Neo4jDriver.v3/Properties/AssemblyInfo.cs b/Blueprint41.Neo4jDriver.v3/Properties/AssemblyInfo.cs index 9c1ae27e..0decef24 100644 --- a/Blueprint41.Neo4jDriver.v3/Properties/AssemblyInfo.cs +++ b/Blueprint41.Neo4jDriver.v3/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("CIRCLES ARROWS LIMITED")] [assembly: AssemblyProduct("Blueprint41 Neo4j Driver v3")] -[assembly: AssemblyCopyright("Copyright © 2017, 2022")] +[assembly: AssemblyCopyright("Copyright © 2017, 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -30,7 +30,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.3.0")] +[assembly: AssemblyFileVersion("1.1.3.0")] [assembly: InternalsVisibleTo("Blueprint41.UnitTest")] \ No newline at end of file diff --git a/Blueprint41.Neo4jDriver.v4/Blueprint41.Neo4jDriver.v4.csproj b/Blueprint41.Neo4jDriver.v4/Blueprint41.Neo4jDriver.v4.csproj index 82b2efdf..039f8ba3 100644 --- a/Blueprint41.Neo4jDriver.v4/Blueprint41.Neo4jDriver.v4.csproj +++ b/Blueprint41.Neo4jDriver.v4/Blueprint41.Neo4jDriver.v4.csproj @@ -21,12 +21,12 @@ - 1.1.2 + 1.1.3 Blueprint41.Neo4jDriver.v4 Blueprint41.Neo4jDriver.v4 Circles Arrows Limited Driver needed to connect to Neo4j using Blueprint41 - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41.Neo4jDriver.v4/Properties/AssemblyInfo.cs b/Blueprint41.Neo4jDriver.v4/Properties/AssemblyInfo.cs index b0ce7d30..a830bf6e 100644 --- a/Blueprint41.Neo4jDriver.v4/Properties/AssemblyInfo.cs +++ b/Blueprint41.Neo4jDriver.v4/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("CIRCLES ARROWS LIMITED")] [assembly: AssemblyProduct("Blueprint41 Neo4j Driver v4")] -[assembly: AssemblyCopyright("Copyright © 2017, 2022")] +[assembly: AssemblyCopyright("Copyright © 2017, 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -30,7 +30,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.3.0")] +[assembly: AssemblyFileVersion("1.1.3.0")] [assembly: InternalsVisibleTo("Blueprint41.UnitTest")] \ No newline at end of file diff --git a/Blueprint41.Neo4jDriver.v5/Blueprint41.Neo4jDriver.v5.csproj b/Blueprint41.Neo4jDriver.v5/Blueprint41.Neo4jDriver.v5.csproj index bb2c4287..1e2b9b5d 100644 --- a/Blueprint41.Neo4jDriver.v5/Blueprint41.Neo4jDriver.v5.csproj +++ b/Blueprint41.Neo4jDriver.v5/Blueprint41.Neo4jDriver.v5.csproj @@ -21,12 +21,12 @@ - 1.1.2 + 1.1.3 Blueprint41.Neo4jDriver.v5 Blueprint41.Neo4jDriver.v5 Circles Arrows Limited Driver needed to connect to Neo4j using Blueprint41 - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41.Neo4jDriver.v5/Properties/AssemblyInfo.cs b/Blueprint41.Neo4jDriver.v5/Properties/AssemblyInfo.cs index d8fe3a55..63c54901 100644 --- a/Blueprint41.Neo4jDriver.v5/Properties/AssemblyInfo.cs +++ b/Blueprint41.Neo4jDriver.v5/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("CIRCLES ARROWS LIMITED")] [assembly: AssemblyProduct("Blueprint41 Neo4j Driver v5")] -[assembly: AssemblyCopyright("Copyright © 2017, 2022")] +[assembly: AssemblyCopyright("Copyright © 2017, 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -30,7 +30,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.3.0")] +[assembly: AssemblyFileVersion("1.1.3.0")] [assembly: InternalsVisibleTo("Blueprint41.UnitTest.Neo4j")] \ No newline at end of file diff --git a/Blueprint41.UnitTest/Entities/Movie.cs b/Blueprint41.UnitTest/Entities/Movie.cs index 03f4841e..decb6f2f 100644 --- a/Blueprint41.UnitTest/Entities/Movie.cs +++ b/Blueprint41.UnitTest/Entities/Movie.cs @@ -289,8 +289,7 @@ public void SetDirector(Person person) { Dictionary properties = new Dictionary(); - if (LazySet(Members.Director, ((ILookupHelper)InnerData.Director).GetItems(null, null), person, null)) - ((ILookupHelper)InnerData.Director).SetItem(person, null, properties); + ((ILookupHelper)InnerData.Director).SetItem(person, null, properties); } #endregion @@ -415,8 +414,7 @@ public void SetCertification(Rating rating, JsNotation)InnerData.Certification).GetItems(null, null), rating, null)) - ((ILookupHelper)InnerData.Certification).SetItem(rating, null, properties); + ((ILookupHelper)InnerData.Certification).SetItem(rating, null, properties); } #endregion diff --git a/Blueprint41.UnitTest/Entities/Person.cs b/Blueprint41.UnitTest/Entities/Person.cs index 631da956..731e7860 100644 --- a/Blueprint41.UnitTest/Entities/Person.cs +++ b/Blueprint41.UnitTest/Entities/Person.cs @@ -670,9 +670,8 @@ public void SetCity(City city, DateTime? moment, JsNotation AddressLine1 if (AddressLine1.HasValue) properties.Add("AddressLine1", AddressLine1.Value); if (AddressLine2.HasValue) properties.Add("AddressLine2", AddressLine2.Value); if (AddressLine3.HasValue) properties.Add("AddressLine3", AddressLine3.Value); - - if (LazySet(Members.City, ((ILookupHelper)InnerData.City).GetItems(moment, null), city, moment)) - ((ILookupHelper)InnerData.City).SetItem(city, moment, properties); + + ((ILookupHelper)InnerData.City).SetItem(city, moment, properties); } #endregion diff --git a/Blueprint41.UnitTest/Entities/Restaurant.cs b/Blueprint41.UnitTest/Entities/Restaurant.cs index e6ed5455..8a196bfb 100644 --- a/Blueprint41.UnitTest/Entities/Restaurant.cs +++ b/Blueprint41.UnitTest/Entities/Restaurant.cs @@ -263,8 +263,7 @@ public void SetCity(City city) { Dictionary properties = new Dictionary(); - if (LazySet(Members.City, ((ILookupHelper)InnerData.City).GetItems(null, null), city, null)) - ((ILookupHelper)InnerData.City).SetItem(city, null, properties); + ((ILookupHelper)InnerData.City).SetItem(city, null, properties); } #endregion diff --git a/Blueprint41/Blueprint41.csproj b/Blueprint41/Blueprint41.csproj index 8390ad19..75eee1dc 100644 --- a/Blueprint41/Blueprint41.csproj +++ b/Blueprint41/Blueprint41.csproj @@ -21,12 +21,12 @@ - 1.1.2 + 1.1.3 Blueprint41 Blueprint41 Circles Arrows Limited An Object Graph Mapper for CSharp and Neo4j. It supports defining your object model as a schema written in C#, adding refactor scripts to define changes to your model over time, also written in C#. When you run your program and the graph is of an older version, the upgrade script will automatically be executed against the graph. It also supports generation of type-safe C# objects, so you know at compile time if your code is compatible with the latest model and upgrades. - Copyright 2017, 2022 (c) Circles Arrows Limited + Copyright 2017, 2024 (c) Circles Arrows Limited https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt http://www.blueprint41.com/ Neo4j Graph Object Mapper diff --git a/Blueprint41/Core/EntityCollection(Of T).cs b/Blueprint41/Core/EntityCollection(Of T).cs index 1a353a3c..e807a9d0 100644 --- a/Blueprint41/Core/EntityCollection(Of T).cs +++ b/Blueprint41/Core/EntityCollection(Of T).cs @@ -299,6 +299,7 @@ protected override void SetItem(TEntity? item, DateTime? moment, Dictionary