mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
33ae5db803
commit
0e63022f6c
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -89,7 +90,18 @@ namespace OrmTest
|
||||
IDemo2();
|
||||
IDemo3();
|
||||
IDemo4();
|
||||
db.CodeFirst.InitTables<Unitadasfa>();
|
||||
db.Deleteable(new Unitadasfa() { Id = "a", Id2 = "c" }).ExecuteCommand();
|
||||
}
|
||||
|
||||
public class Unitadasfa
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string Id { get; set; }
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string Id2 { get; set; }
|
||||
}
|
||||
|
||||
private static void IDemo4()
|
||||
{
|
||||
var db = Db;
|
||||
|
Loading…
Reference in New Issue
Block a user