Exemplo n.º 1
0
 internal static void Delete(Type objectType, object criteria)
 {
     DataPortal <object> .Delete(objectType, criteria);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Called by a Shared (static in C#) method in the business class to cause
        /// immediate deletion of a specific object from the database.
        /// </summary>
        /// <param name="criteria">Object-specific criteria.</param>
        public static void Delete <T>(object criteria)
        {
            var dp = new DataPortal <T>();

            dp.Delete(criteria);
        }