When working with CRUD operation in flex, I want to know how to open only one time for all update and delete operations. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Flextra’s mentioned in his comment above, Flex doesn’t access the database directly. You’ll have to make a
RemoteObjectcall to another layer that will perform the actual CRUD operations.That being said, unless you want to perform all of your CRUD operations in one giant batch, I would not recommend keeping the database connection open just waiting for something to do. That’s generally considered poor practice. I would recommend opening and closing the connection to your database as needed when performing each operation.