mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-21 02:02:50 +08:00
17 lines
755 B
C#
17 lines
755 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
|
|
public class g {
|
|
|
|
public static IFreeSql mysql = new FreeSql.FreeSqlBuilder()
|
|
//.UseConnectionString(FreeSql.DataType.MySql, "Data Source=127.0.0.1;Port=3306;User ID=root;Password=root;Initial Catalog=cccddd;Charset=utf8;SslMode=none;Max pool size=10")
|
|
.UseConnectionString(FreeSql.DataType.MySql, "Data Source=123.207.16.102;Port=3306;User ID=root;Password=qwe369258/*-;Initial Catalog=ManagerDB;Charset=utf8;SslMode=none;Max pool size=10")
|
|
.Build();
|
|
|
|
public static IFreeSql sqlserver = new FreeSql.FreeSqlBuilder()
|
|
.UseConnectionString(FreeSql.DataType.SqlServer, "Data Source=.;Integrated Security=True;Initial Catalog=shop;Pooling=true;Max Pool Size=10")
|
|
.Build();
|
|
}
|