Menu

How to create a DalDataAdapter

Help
2006-03-20
2013-03-25
  • André Baldo (BR) Monte Aprazí

    Hello companions,

    was I trying to create a class for the implements of a DalDataAdapter for using him/it more with the structure of development of DaMonkey after a lot of work I didn't get good results it will be that anybody of you faced this problem?

    Thanks.
    André Luiz Baldo, Brasil.

     
    • vibul

      vibul - 2006-03-20

      Hi,

      Can u explain a little more what you are trying to do?  Maybe put up some code of where you are having problems.

      Regards
      Vibul.

       
    • André Baldo (BR) Monte Aprazí

      Hi, 
      In the project that I am working I need to fill out datatables in several parts of the system, more I repaired that DaMonkey doesn't implement a generic class of a DataAdapter, I tried then to create an abstract class DalDataAdapter proceeding with example the classes DalCommand and DalConnection, more I didn't have success because I don't have great knowledge in advanced programming. He was making that class for MySql, he wanted to use the method fill to fill out datatables or datasets using the generic structure of DaMonkey. My congratulations Vibul for the great work accomplished in DaMonkey. 
       
      In case he wants to give a glance in the codes that I made myself your my msn messenger is andrelbaldo@hotmail.com 
       
       
      Regards, 
       
      André

       
      • vibul

        vibul - 2006-03-21

        Hi Andre,

        You are right in that DaMoney does not have a generic DataAdapter class.  The reason is that I wanted to use a strongly-typed way of access data.

        If u do need to use DataSets, I think the best way is to write a class that maps between the DaMonkey generated classes and DataSets.

        Does this help? If not, let me know and I'll contact u via email for further discussions.

        Regards
        Vibul.

         
    • André Baldo (BR) Monte Aprazí

      Hello, 
       
      I am working with DaMonkey,  for create a class generic like DalCommand to instances of a Data Adapter, I created two classes, one class called DalDataAdapter and other called class MySqlDalDataAdapter, here everything certain. 
       
      The problem began when I tried to use the method to fill out of created DalDataAdapter, I have little knowledge in programming but I know that don't get instance an abstract class as well as if instance a class non abstract, then I changed of strategy I tried to create a method inside of the class DalConnection that she work as well as the method GetTextCommand (), to create a DalDataAdapter, but I didn't also have success. I would like to know some of  it could help me to implement such class for us to contribute with the development of the DaMonkey.
      give I changed again of strategy, this time I tried to create a class that creates an instance of the class DalDataAdapter as well as the the class DalConnectionFactory it creates the instance, taking this class as example tried to do a class layer DalDataAdapterFactory for instanciar an object of the class DalDataAdapter and like this to use him/it so dreamed method fill
         
      Regards,

       
      • vibul

        vibul - 2006-03-23

        Let's take this discussion off-line.

        I've emailed u some further questions.

        Regards
        Vibul.

         

Log in to post a comment.