@manhng

Welcome to my blog!

Dapper with MySQL

May 7, 2018 16:08

Dapper with MySQL.Data (edit)

Install-Package Log4net

Install-Package Newtonsoft.Json

Install-Package Dapper -Version 1.50.2

Install-Package MySql.Data -Version 6.9.11 (6.7.9)

JSON -> TypeScript

http://json2ts.com/

JSON -> CSharp

http://json2csharp.com/

CSharp -> JSON

http://csharp2json.azurewebsites.net/

JSON Viewer

https://codebeautify.org/jsonviewer

Log4net + MySQL + Newtonsoft.json + Dapper

ConsoleApp1.zip 

+ Nuget:
	install-package log4net
	install-package newtonsoft.json
	install-package dapper -version 1.50.2
	install-package mysql.data -version 6.9.11 (-version 6.7.9)
+ log4net:
	1) Console App: 
		+ ..\Properties\AssemblyInfo.cs: 
			[assembly: log4net.Config.XmlConfigurator(Watch = true)]
		+ Project properties > Build > Allow unsafe code
	2) Web App: ..\Global.asax.cs
		protected void Application_Start()
		{
			log4net.Config.XmlConfigurator.Configure();
			...
		}
+ Send Email

Categories

Recent posts