public TestTable Update(TestTable entity) { using (this.connection = Utilities.Database.GetProfiledOpenConnection()) { this.connection.Update(entity); } return entity; }
public TestTable Insert(TestTable entity) { using (this.connection = Utilities.Database.GetProfiledOpenConnection()) { var insert = this.connection.Insert(entity); entity.Id = (int)insert; return entity; } }