Beispiel #1
0
 public List <T> Select <T>(string TableName, string Where) where T : MsData
 {
     List <T> ret = null; Execute((conn, cmd, trans) => { ret = MsSqlCommandTool.Select <T>(cmd, TableName, Where); }); return(ret);
 }
Beispiel #2
0
 public void Insert <T>(string TableName, params T[] Datas) where T : MsData
 {
     Execute((conn, cmd, trans) => { MsSqlCommandTool.Insert <T>(cmd, TableName, Datas); });
 }
Beispiel #3
0
 public bool Exist <T>(string TableName, T Data) where T : MsData
 {
     bool ret = false; Execute((conn, cmd, trans) => { ret = MsSqlCommandTool.Exist <T>(cmd, TableName, Data); }); return(ret);
 }
Beispiel #4
0
 public bool Check(string TableName, string Where)
 {
     bool ret = false; Execute((conn, cmd, trans) => { ret = MsSqlCommandTool.Check(cmd, TableName, Where); }); return(ret);
 }
Beispiel #5
0
 public bool Exist(string TableName, int Id)
 {
     bool ret = false; Execute((conn, cmd, trans) => { ret = MsSqlCommandTool.Exist(cmd, TableName, Id); }); return(ret);
 }
Beispiel #6
0
 public void DropTable(string TableName)
 {
     Execute((conn, cmd, trans) => { MsSqlCommandTool.DropTable(cmd, TableName); });
 }
Beispiel #7
0
 public void CreateTable <T>(string TableName) where T : MsData
 {
     Execute((conn, cmd, trans) => { MsSqlCommandTool.CreateTable <T>(cmd, TableName); });
 }
Beispiel #8
0
 public void Delete(string TableName, string Where)
 {
     Execute((conn, cmd, trans) => { MsSqlCommandTool.Delete(cmd, TableName, Where); });
 }
Beispiel #9
0
 public void Delete(string TableName, List <int> Ids)
 {
     Execute((conn, cmd, trans) => { MsSqlCommandTool.Delete(cmd, TableName, Ids); });
 }