Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public static void Delete <T>(T item)
 {
     DeleteCommand <T> .ExecuteOne(item);
 }