Git Product home page Git Product logo

csharpmongomigrations's People

Contributors

enriqueraso avatar fgieseke avatar ilyabreev avatar joakimjm avatar vladimirrybalko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

csharpmongomigrations's Issues

Dll from nuget package is not loading in NET Core 2.1

It seems that something wrong with nuget package.
When i reference it in NET Core 2.1 project it doesn't show dll included and CSharpMongoMigrations is not listed in Object Browser.
image

When i build nuget package from source code myself all is good.

Develop ability for applying migrations by collection

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.

Add or change MigrationRunner constructor

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.

Prefix of MitrationVersion Collection

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.

FileLoadException on running Demo

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?

License

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.