Skip to content

hMatoba/Mango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mango

Build Status

MongoDB utility in .NET Core

How to Use

[MongoDoc]
class Model1
{
    [BsonId]
    [BsonRepresentation(BsonType.String)]
    public string Id { get; set; }

    [BsonElement("token")]
    [BsonRepresentation(BsonType.String)]
    public string Token { get; set; }
}

// Create collection(s)
MongoInitializer.Run(connectionString, dbName, assemblyName, modelsNamespace);

License

This software is released under the MIT License, see LICENSE.txt.

About

MongoDB Schema as Code in .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages