Example #1
0
        // ---------------------------------------------------------------------------------------------
        // 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();
        }
Example #2
0
 public static void Delete <T>(T item)
 {
     DeleteCommand <T> .ExecuteOne(item);
 }