mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add demo
This commit is contained in:
parent
40b8c57dee
commit
0a902c57b1
@ -63,8 +63,23 @@ namespace OrmTest
|
||||
Price = 1,
|
||||
Name = "a"
|
||||
}, true).Where(it => it.Id == 1).ExecuteCommand();
|
||||
|
||||
db.CodeFirst.InitTables<Unitdfafaadfaa>();
|
||||
List<Unitdfafaadfaa> result = new List<Unitdfafaadfaa>();
|
||||
for (int i = 0; i < 4000; i++)
|
||||
{
|
||||
result.Add(new Unitdfafaadfaa() { Id=i, Name="a" });
|
||||
}
|
||||
db.Insertable(result).ExecuteCommand();
|
||||
db.DbMaintenance.TruncateTable<Unitdfafaadfaa>();
|
||||
}
|
||||
|
||||
public class Unitdfafaadfaa
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey =true)]
|
||||
public long Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
public class Order
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true,OracleSequenceName = "Seq_Id")]
|
||||
|
Loading…
Reference in New Issue
Block a user