An implementation of google's dapper by .NET Core.
- Add reference to the nuget package of Fody
Install-Package Fody
- Add reference to the nuget package of Cocohub.Tracer.Fody
Install-Package Cocohub.Tracer.Fody
- Add reference to the nuget package of Tracer.Cocohub
'Install-Package Tracer.Cocohub
-
Add FodyWeavers.xml
-
Add code
public void ConfigureServices(IServiceCollection services)
{
...
services.AddCocohub();
...
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider svp)
{
...
//remember always to call this brfore UseMvc()
app.UseCocohub();
app.UseMvc();
...
}