Delete BUG with multiple primary keys

This commit is contained in:
sunkaixuan
2017-11-02 16:08:23 +08:00
parent 26abb4a0f5
commit 21f7027fb1
5 changed files with 26 additions and 4 deletions

View File

@@ -51,5 +51,11 @@ namespace OrmTest.UnitTest
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
public SqlSugarClient GetInstanceByAttribute()
{
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { InitKeyType=InitKeyType.Attribute, ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}
}