示例#1
0
文件: Razor.cs 项目: tjlcast/SmartDb
 public void InsertInToDb <T>(ref T item)
     where T : class, new()
 {
     item = SmartDbEntityAgentFactory.Of(item);
     SmartDbBus.PlanToWriteToDb(item, DbActionType.Insert);
     //return item;
 }
示例#2
0
文件: Razor.cs 项目: tjlcast/SmartDb
 public void DeleteFromDb <T>(T item)
     where T : class, new()
 {
     SmartDbBus.PlanToWriteToDb(item, DbActionType.Delete);
 }
示例#3
0
 private void WriteToDb(T item, DbActionType type)
 {
     SmartDbBus.PlanToWriteToDb(item, type);
 }