MongoDB utility in .NET Core
[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);
This software is released under the MIT License, see LICENSE.txt.