mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update demo
This commit is contained in:
parent
a41d35d50f
commit
4770251ba5
@ -24,7 +24,7 @@ namespace OrmTest
|
|||||||
/// Account have permission to create database
|
/// Account have permission to create database
|
||||||
/// 用有建库权限的数据库账号
|
/// 用有建库权限的数据库账号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string ConnectionString = "Provider=Microsoft.ACE.OleDB.15.0;Data Source="+GetCurrentProjectPath+"\\test.accdb";
|
public static string ConnectionString = "Provider=Microsoft.ACE.OleDB.16.0;Data Source="+GetCurrentProjectPath+"\\test.accdb";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Account have permission to create database
|
/// Account have permission to create database
|
||||||
/// 用有建库权限的数据库账号
|
/// 用有建库权限的数据库账号
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace OrmTest
|
namespace OrmTest
|
||||||
{
|
{
|
||||||
@ -15,6 +16,8 @@ namespace OrmTest
|
|||||||
//Set Custom Db
|
//Set Custom Db
|
||||||
InstanceFactory.CustomDbName = "Access";
|
InstanceFactory.CustomDbName = "Access";
|
||||||
InstanceFactory.CustomDllName = "SqlSugar.Access";
|
InstanceFactory.CustomDllName = "SqlSugar.Access";
|
||||||
|
InstanceFactory.CustomAssemblies =
|
||||||
|
new Assembly[] { typeof(SqlSugar.Access.AccessProvider).Assembly };
|
||||||
InstanceFactory.CustomNamespace = "SqlSugar.Access";
|
InstanceFactory.CustomNamespace = "SqlSugar.Access";
|
||||||
|
|
||||||
Demo0_SqlSugarClient.Init();
|
Demo0_SqlSugarClient.Init();
|
||||||
|
Loading…
Reference in New Issue
Block a user