コード例 #1
0
 /// <summary>
 /// If the record contains Deleted or IsDeleted flag columns, sets them to true. If not, invokes Destroy()
 /// </summary>
 /// <param name="columnName">The name of the column that whose value will be evaluated for deletion</param>
 /// <param name="oValue">The value that will be compared against columnName to determine deletion</param>
 /// <param name="userName">The userName that the record will be updated with. Only relevant if the record contains Deleted or IsDeleted properties</param>
 /// <returns>Number of rows affected by the operation</returns>
 private static int DeleteByParameter(string columnName, object oValue, string userName)
 {
     return(ActiveHelper <T> .Delete(columnName, oValue, userName));
 }
コード例 #2
0
 public static void Delete(string columnName, object param)
 {
     new ItemType();
     ActiveHelper <ItemType> .Delete(columnName, param, String.Empty);
 }
コード例 #3
0
 /// <summary>
 /// Deletes the specified column name.
 /// </summary>
 /// <param name="columnName">Name of the column.</param>
 /// <param name="oValue">The o value.</param>
 /// <param name="userName">Name of the user.</param>
 /// <returns></returns>
 public static int Delete(string columnName, object oValue, string userName)
 {
     return(ActiveHelper <ItemType> .Delete(columnName, oValue, userName));
 }
コード例 #4
0
        public static void Delete(object keyID)
        {
            ItemType item = new ItemType();

            ActiveHelper <ItemType> .Delete(item.GetSchema().PrimaryKey.ColumnName, keyID, String.Empty);
        }