Ejemplo n.º 1
0
 /// <summary>
 /// Saves the object to the database. The table name is inferred from the object type.
 /// </summary>
 /// <param name="entity">The object.</param>
 /// <param name="queryParameterList">The query parameter list.</param>
 /// <returns>int</returns>
 public static int SaveObject(SafnetBaseEntity entity, List <QueryParameter> queryParameterList)
 {
     return(SaveObject(entity, queryParameterList, entity.GetType().Name));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deletes the object from the database. Table name is inferred from the object's type
 /// </summary>
 /// <param name="entity">The object.</param>
 public static void DeleteObject(SafnetBaseEntity entity)
 {
     DeleteObject(entity, entity.GetType().Name);
 }