Problem Importing BO From File
-
I have an ExportAgent BO, and an editor bound to such an object. The BO represents a csExportAgent table record in a SQL Server DB. The editor provides a function to import an ExportAgent from an XML file. My problem case is where the BO imported from a file already exists in the database. Currently, I always delete the BO from the database using a direct SQL command, and then I insert it as new. This allows me to save BO's loaded from the DB as well as BO's imported from file, whether they exist or not. How could I improve this scenario?
-
I have an ExportAgent BO, and an editor bound to such an object. The BO represents a csExportAgent table record in a SQL Server DB. The editor provides a function to import an ExportAgent from an XML file. My problem case is where the BO imported from a file already exists in the database. Currently, I always delete the BO from the database using a direct SQL command, and then I insert it as new. This allows me to save BO's loaded from the DB as well as BO's imported from file, whether they exist or not. How could I improve this scenario?
Brady, What part are you looking to improve? Not use a direct SQL command to delete it?
-
Brady, What part are you looking to improve? Not use a direct SQL command to delete it?
I'm looking to improve the whole scenario where the BO imported from file actually already exists in the DB.
My blog is acceptably unique.