不要安装错了,有几个比较像
SqlSugarCore SqlSugar.XuguCoreNew
//注册DLL写在程序启动时
InstanceFactory.CustomAssemblies = new System.Reflection.Assembly[] {
typeof(XuguProvider).Assembly
};
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
{
ConnectionString = "IP=111.123.17;DB=HOUSE;User=SYSDBA;PWD=abc;Port=5138;AUTO_COMMIT=on;CHAR_SET=UTF8",//CHAR_SET=GBK
DbType = SqlSugar.DbType.Xugu,
IsAutoCloseConnection = true,
//ConfigureExternalServices = new ConfigureExternalServices() { SqlFuncServices = SqlFuncCustom.Methods }
},
db => {
db.Aop.OnLogExecuting = (sql, pars) =>
{
Console.WriteLine(SqlSugar.UtilMethods.GetNativeSql(sql, pars));
};
});
//CRUD
db.Insertable(list).ExecuteCommand();
var list = db.Queryable<MY_USER>().ToList();
db.Updateable(list).ExecuteCommand();
db.Deleteable(list).ExecuteCommand();目前还没有发布NUGET,可以下载源码使用

2016 © donet5.comApache Licence 2.0