/// <summary> /// Deletes an object fro the database. /// </summary> /// <param name="obj">an valid table type object that should be stored in db</param> public void Delete(object obj) { if (IsTypeATable(obj.GetType())) { _ct.Delete(obj); } else { throw new InvalidOperationException( $"{obj.GetType()} is not a valid Table Type, please set correct Attributes"); } }