vladimirrybalko / csharpmongomigrations Goto Github PK
View Code? Open in Web Editor NEWCSharp migrations tool for MongoDb
License: MIT License
CSharp migrations tool for MongoDb
License: MIT License
Hi.
The assemblies uploaded to nuget.org as 2.1 package has 2.0 version and there is no updates related to MongoUrl and stuff.
According a PR #5.
It's a definitely good idea to extend library and add supporting for applying migrations by collection.
At first glance we just need to create a new polymorphic method for MigrationRunner class. And probably make some changes for migrations discovery logic.
We can use #5 for inspiration.
MigrationRunner
constructor now has following signature:
public MigrationRunner(string server, string database, string migrationAssembly)
I'd like to propose constructor that accepts MongoUrl
as the convenient way to define mongo db connection string.
It might look like:
public MigrationRunner(MongoUrl connectionString, string migrationAssembly)
Motivation:
If I have a valid connection string for mongodb somewhere in my project in format mongodb://... then I need to replace mongodb:// with empty string before passing it in MigrationRunner
.
HI, what we need is the posibility to shared the same dabatase between differents microservicies. For this I need that a prefix can be add to the MigrationVersion Collection or have another parameter so I can migrate diferentes schemas in the database.
Good morning
We are assessing libraries for MongoDb migrations, and yours look promising.
So I cloned it, and opened it on Visual Studio. Try to run the Demo, and there is an exception:
System.IO.FileLoadException
HResult=0x80131047
Message=The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Source=System.Private.CoreLib
StackTrace:
at System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
at System.Reflection.AssemblyName..ctor(String assemblyName)
at CSharpMongoMigrations.MigrationLocator..ctor(String assemblyName, IMongoDatabase database) in D:\thirdparty\CSharpMongoMigrations\src\CSharpMongoMigrations\MigrationLocator.cs:line 30
at CSharpMongoMigrations.MigrationRunner..ctor(MongoUrl url, String migrationAssembly) in D:\thirdparty\CSharpMongoMigrations\src\CSharpMongoMigrations\MigrationRunner.cs:line 25
at CSharpMongoMigrations.MigrationRunner..ctor(String connectionString, String migrationAssembly) in D:\thirdparty\CSharpMongoMigrations\src\CSharpMongoMigrations\MigrationRunner.cs:line 36
at CSharpMongoMigrations.Demo.Runner.Main(String[] args) in D:\thirdparty\CSharpMongoMigrations\src\CSharpMongoMigrations.Demo\Runner.cs:line
Am I missing something?
I've found your repository by using your NuGet Package and I would like to use it for a commercial project, but there is currently no license in your repository which implies that I can't use it.
I am referencing NuGet package 2.2.0 in my solution and I received this error when I am trying to update a BsonDocument.
I checked with ILSpy that the version of the library included in the NuGet package (2.1.2) is not the latest version published in GitHub (2.1.3).
Can you create a NuGet package with the new version, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.