// --------------------------------------------------------------------------------------------- // Public Static Methods // --------------------------------------------------------------------------------------------- public static void ExecuteOne(T item) { DeleteCommand <T> deleteCommand = new DeleteCommand <T>(); deleteCommand.AppendWhereCondition(Mapper.GetIdentityColumnProperty(typeof(T)), Mapper.GetIdentityColumnValue(item)); deleteCommand.ExecuteOne(); }
public static void Delete <T>(T item) { DeleteCommand <T> .ExecuteOne(item); }