Skip to content

Commit

Permalink
Merge pull request #51 from circles-arrows/v1.1.3
Browse files Browse the repository at this point in the history
v1.1.3
  • Loading branch information
agentsmith41 committed Feb 26, 2024
2 parents 8b6bbca + a46e55a commit b7038f9
Show file tree
Hide file tree
Showing 17 changed files with 346 additions and 407 deletions.
4 changes: 2 additions & 2 deletions Blueprint41.Build/Blueprint41.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41.Build</PackageId>
<Title>Blueprint41.Build</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>Code generator needed to generate Type-safe classes for Blueprint41</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41.MemgraphDriver</PackageId>
<Title>Blueprint41.MemgraphDriver</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>Driver needed to connect to Neo4j using Blueprint41</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
6 changes: 3 additions & 3 deletions Blueprint41.Neo4jDriver.Memgraph/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand All @@ -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")]
4 changes: 2 additions & 2 deletions Blueprint41.Neo4jDriver.v3/Blueprint41.Neo4jDriver.v3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41.Neo4jDriver.v3</PackageId>
<Title>Blueprint41.Neo4jDriver.v3</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>Driver needed to connect to Neo4j using Blueprint41</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
6 changes: 3 additions & 3 deletions Blueprint41.Neo4jDriver.v3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand All @@ -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")]
4 changes: 2 additions & 2 deletions Blueprint41.Neo4jDriver.v4/Blueprint41.Neo4jDriver.v4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41.Neo4jDriver.v4</PackageId>
<Title>Blueprint41.Neo4jDriver.v4</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>Driver needed to connect to Neo4j using Blueprint41</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
6 changes: 3 additions & 3 deletions Blueprint41.Neo4jDriver.v4/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand All @@ -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")]
4 changes: 2 additions & 2 deletions Blueprint41.Neo4jDriver.v5/Blueprint41.Neo4jDriver.v5.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41.Neo4jDriver.v5</PackageId>
<Title>Blueprint41.Neo4jDriver.v5</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>Driver needed to connect to Neo4j using Blueprint41</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
6 changes: 3 additions & 3 deletions Blueprint41.Neo4jDriver.v5/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand All @@ -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")]
6 changes: 2 additions & 4 deletions Blueprint41.UnitTest/Entities/Movie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ public void SetDirector(Person person)
{
Dictionary<string, object> properties = new Dictionary<string, object>();

if (LazySet(Members.Director, ((ILookupHelper<Person>)InnerData.Director).GetItems(null, null), person, null))
((ILookupHelper<Person>)InnerData.Director).SetItem(person, null, properties);
((ILookupHelper<Person>)InnerData.Director).SetItem(person, null, properties);
}

#endregion
Expand Down Expand Up @@ -415,8 +414,7 @@ public void SetCertification(Rating rating, JsNotation<Blueprint41.UnitTest.Data
if (Substances.HasValue) properties.Add("Substances", Substances.Value?.ToString());
if (SexAndNudity.HasValue) properties.Add("SexAndNudity", SexAndNudity.Value?.ToString());

if (LazySet(Members.Certification, ((ILookupHelper<Rating>)InnerData.Certification).GetItems(null, null), rating, null))
((ILookupHelper<Rating>)InnerData.Certification).SetItem(rating, null, properties);
((ILookupHelper<Rating>)InnerData.Certification).SetItem(rating, null, properties);
}

#endregion
Expand Down
5 changes: 2 additions & 3 deletions Blueprint41.UnitTest/Entities/Person.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,8 @@ public void SetCity(City city, DateTime? moment, JsNotation<string> 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<City>)InnerData.City).GetItems(moment, null), city, moment))
((ILookupHelper<City>)InnerData.City).SetItem(city, moment, properties);

((ILookupHelper<City>)InnerData.City).SetItem(city, moment, properties);
}

#endregion
Expand Down
3 changes: 1 addition & 2 deletions Blueprint41.UnitTest/Entities/Restaurant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ public void SetCity(City city)
{
Dictionary<string, object> properties = new Dictionary<string, object>();

if (LazySet(Members.City, ((ILookupHelper<City>)InnerData.City).GetItems(null, null), city, null))
((ILookupHelper<City>)InnerData.City).SetItem(city, null, properties);
((ILookupHelper<City>)InnerData.City).SetItem(city, null, properties);
}

#endregion
Expand Down
4 changes: 2 additions & 2 deletions Blueprint41/Blueprint41.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</PropertyGroup>

<PropertyGroup Label="Package">
<PackageVersion>1.1.2</PackageVersion>
<PackageVersion>1.1.3</PackageVersion>
<PackageId>Blueprint41</PackageId>
<Title>Blueprint41</Title>
<Authors>Circles Arrows Limited</Authors>
<Description>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.</Description>
<Copyright>Copyright 2017, 2022 (c) Circles Arrows Limited</Copyright>
<Copyright>Copyright 2017, 2024 (c) Circles Arrows Limited</Copyright>
<PackageLicenseUrl>https://github.com/circles-arrows/blueprint41/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://www.blueprint41.com/</PackageProjectUrl>
<PackageTags>Neo4j Graph Object Mapper</PackageTags>
Expand Down
1 change: 1 addition & 0 deletions Blueprint41/Core/EntityCollection(Of T).cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ protected override void SetItem(TEntity? item, DateTime? moment, Dictionary<stri
if (ParentProperty?.PropertyType != PropertyType.Lookup)
throw new NotSupportedException("You cannot use SetItem on a property thats not a lookup.");

LazyLoad();
LazySet();

if (item is not null && EagerLoadLogic is not null)
Expand Down
Loading

0 comments on commit b7038f9

Please sign in to comment.