mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
Update Oracle
This commit is contained in:
@@ -8,6 +8,6 @@ namespace OrmTest
|
||||
{
|
||||
public class Config
|
||||
{
|
||||
public static string ConnectionString = "Data Source=localhost/orcl;User ID=system;Password=JHL52771jhl;";
|
||||
public static string ConnectionString = "Data Source=kobato.meibu.net/orclpdb;User ID=sa;Password=123456;";
|
||||
}
|
||||
}
|
||||
|
@@ -48,9 +48,9 @@ namespace OrmTest.Demo
|
||||
var insertObjs = new List<Student>();
|
||||
for (int i = 0; i < 1000; i++)
|
||||
{
|
||||
insertObjs.Add(new Student() { Name = "name" + i });
|
||||
insertObjs.Add(new Student() { Name = "name" + i ,CreateTime=DateTime.Now});
|
||||
}
|
||||
var t10 = db.Insertable(insertObjs.ToArray()).InsertColumns(it => new { it.Name }).ExecuteCommand();
|
||||
var t10 = db.Insertable(insertObjs.ToArray()).InsertColumns(it => new { it.Name,it.CreateTime }).ExecuteCommand();
|
||||
|
||||
var t11 = db.Insertable(insertObjs.ToArray()).ExecuteCommand();
|
||||
}
|
||||
|
Reference in New Issue
Block a user