lynMarkdigRenderTest98 1.0.0
dotnet add package lynMarkdigRenderTest98 --version 1.0.0
NuGet\Install-Package lynMarkdigRenderTest98 -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="lynMarkdigRenderTest98" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lynMarkdigRenderTest98 --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: lynMarkdigRenderTest98, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install lynMarkdigRenderTest98 as a Cake Addin #addin nuget:?package=lynMarkdigRenderTest98&version=1.0.0 // Install lynMarkdigRenderTest98 as a Cake Tool #tool nuget:?package=lynMarkdigRenderTest98&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Chakra.Core.MongoDb
Provider for MongoDB in Chakra.Core framework
Please checkout README.md on "Chakra.Core" package, first... Then:
- Define your own MongoDbOptions implementation like that:
public class ApplicationMongoDbOptions: IMongoDbOptions
{
public string ConnectionString { get; set; }
public ApplicationMongoDbOptions()
{
//Set connection string from application configuration, xml files, hardcoded, etc.
ConnectionString = "mongodb://dbusername:dbpassword@servername/databasename?authSource=authenticationdatabase";
}
}
- Implement a concrete class for a storage provider on MongoDb Core
[Repository]
public class MongoDbProductRepository: MongoDbRepositoryBase<Product, ApplicationMongoDbOptions>, IProductRepository
{
public MongoDbProductRepository(IDataSession dataSession)
: base(dataSession) { }
public IList<Product> FetchAvailableProductsInPeriod(DateTime from, DateTime to)
{
//TODO...Insert here the method implementation
//ex: => DataSession.Database.GetCollection<Product>().Where(p => ...
}
}
- Register default data session for application
SessionFactory.RegisterDefaultSession<MongoDbDataSession<ApplicationMongoDbOptions>>();
- Open session on storage (ex. database) using default configured provider, resolve repository interface using registered storage provider and obtain concrete repository implementation
using (IDataSession dataSession = SessionFactory.OpenSession())
{
var productRepository = dataSession.ResolveRepository<IProductRepository>();
var entities = productRepository.FetchAvailableProductsInPeriod(
new DateTime(2013, 8, 1), DateTime.Now);
}
You have the opportunity to switch a provider (ex. from fake to Entity Framework, from NHibernate to MongoDb) changing a single line of code on your application that can be really database agnostic and every single part can be tested in its own isolated context.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 0 | 11/24/2020 |