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
fc4179e778
commit
903ca6970f
Binary file not shown.
@ -12,7 +12,7 @@ namespace OrmTest.Demo
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.Sqlite, IsAutoCloseConnection = true });
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { InitKeyType=InitKeyType.Attribute,ConnectionString = Config.ConnectionString, DbType = DbType.Sqlite, IsAutoCloseConnection = true });
|
||||
|
||||
|
||||
db.Aop.OnLogExecuted = (sql, pars) =>
|
||||
|
@ -16,7 +16,8 @@ namespace OrmTest.Models
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey =true)]
|
||||
public Guid PK {get;set;}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user