hhblaze / DBreeze

C# .NET NOSQL ( key value store embedded ) ACID multi-paradigm database management system.
BSD 2-Clause "Simplified" License
532 stars 58 forks source link

Biser Objectifies classes using different namespace than DBreeze's version #63

Closed robotron2084 closed 3 years ago

robotron2084 commented 3 years ago

There is a slight incompatibility between the version of Biser shipped inside DBreeze and that used by BiserObjectify.

To reproduce:

  1. Create _Biser.cs files via Objectify.
  2. Add these files to your project that does not contain Biser.
  3. Observe that the _Biser.cs files do not compile.
  4. Add using DBreeze.Utils; to the _Biser.cs files.
  5. Observe that the files now compile successfully.

Expected Results: When creating serialization stubs for classes, that they are compatible with the version of Biser that ships with DBreeze without requiring manually modifying the files.

hhblaze commented 3 years ago

Yes, probably will enter a new parameter smth. like "generate for DBreeze".

hhblaze commented 3 years ago

Grab new BiserObjectify from Nuget and re-generated classes due to the instruction:

image

robotron2084 commented 3 years ago

Yeah, that works. Thanks for the quick update! I appreciate it. I'll pull the latest shortly.

robotron2084 commented 3 years ago

Pulled latest and it does work as expected. I'm currently using this in a Unity project and it is yelling at me about inconsistent line endings. This is a warning, not an error. I'm not sure if that's a new thing that has been introduced in this release. I may look into it and send you a PR.

hhblaze commented 3 years ago

I will check it

hhblaze commented 3 years ago

Line endings are fixed in BiserObjectify 1.7.0 (grab from NuGet)