public void InsertInToDb <T>(ref T item) where T : class, new() { item = SmartDbEntityAgentFactory.Of(item); SmartDbBus.PlanToWriteToDb(item, DbActionType.Insert); //return item; }
public void DeleteFromDb <T>(T item) where T : class, new() { SmartDbBus.PlanToWriteToDb(item, DbActionType.Delete); }
private void WriteToDb(T item, DbActionType type) { SmartDbBus.PlanToWriteToDb(item, type); }