Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. access data base

access data base

Scheduled Pinned Locked Moved C#
csharpvisual-studiojsonhelpquestion
11 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adrian564
    wrote on last edited by
    #1

    Hello all, I'm new to c# and I'm having trouble accessing a custom built .dll that is referenced from my Microsoft visual studio 2010 c# console project. The CaraPartnersSdk.dll has 2 files from what I can see. which are:

    using System;
    using System.Collections.Generic;

    namespace CaraPartnersSdk
    {
    public class CarCollection
    {
    public CarCollection();

        public IEnumerable<Car> FindByName(string name);
        public Car GetByID(int id);
    }
    

    }

    I know this class some how will help me access the collection of cars. I need help parsing through this collection so I can retrieve an individual car. I have no idea how. Please, excuse my dumb question I know its pretty dumb but I have spent a long time trying to figure this out but I can not. This is the other class "Car":

    using System;
    using System.Collections.Generic;

    namespace CaraPartnersSdk
    {
    public class Car
    {
    public Car();

        public string AlternateForm { get; }
        public Condition Condition { get; }
        public IEnumerable<Car> ConnectsToCar { get; }
        public bool HasBeenOpened { get; }
        public int ID { get; }
        public string Name { get; }
        public string OptionalAttributesXml { get; }
        public decimal Price { get; }
        public string Set { get; }
        public int Strength { get; }
    }
    

    }

    For now, I just want to print out all the car names from the collection of cars. I would just like to do it in a simple main class but I've had great difficulty in doing so. Any help is much appreciated. Thank you. Best, Adrian

    P 1 Reply Last reply
    0
    • A adrian564

      Hello all, I'm new to c# and I'm having trouble accessing a custom built .dll that is referenced from my Microsoft visual studio 2010 c# console project. The CaraPartnersSdk.dll has 2 files from what I can see. which are:

      using System;
      using System.Collections.Generic;

      namespace CaraPartnersSdk
      {
      public class CarCollection
      {
      public CarCollection();

          public IEnumerable<Car> FindByName(string name);
          public Car GetByID(int id);
      }
      

      }

      I know this class some how will help me access the collection of cars. I need help parsing through this collection so I can retrieve an individual car. I have no idea how. Please, excuse my dumb question I know its pretty dumb but I have spent a long time trying to figure this out but I can not. This is the other class "Car":

      using System;
      using System.Collections.Generic;

      namespace CaraPartnersSdk
      {
      public class Car
      {
      public Car();

          public string AlternateForm { get; }
          public Condition Condition { get; }
          public IEnumerable<Car> ConnectsToCar { get; }
          public bool HasBeenOpened { get; }
          public int ID { get; }
          public string Name { get; }
          public string OptionalAttributesXml { get; }
          public decimal Price { get; }
          public string Set { get; }
          public int Strength { get; }
      }
      

      }

      For now, I just want to print out all the car names from the collection of cars. I would just like to do it in a simple main class but I've had great difficulty in doing so. Any help is much appreciated. Thank you. Best, Adrian

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Please don't repost[^].

      A 1 Reply Last reply
      0
      • P PIEBALDconsult

        Please don't repost[^].

        A Offline
        A Offline
        adrian564
        wrote on last edited by
        #3

        I never got an answer.

        P 1 Reply Last reply
        0
        • A adrian564

          I never got an answer.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          And you thought that reposting it with a totally unrelated subject line would help? :confused:

          A 1 Reply Last reply
          0
          • P PIEBALDconsult

            And you thought that reposting it with a totally unrelated subject line would help? :confused:

            A Offline
            A Offline
            adrian564
            wrote on last edited by
            #5

            Um, no. I'm new to the forum and new to c#. I do not believe its a totally unrelated subject line. If it is unrelated please forgive me almighty guardian watcher of codeproject.com. I just need some direction, if your not willing to help then do not attempt to convict me by saying I'm posting unrelated subject lines. Maybe, next time you can say something as "how is this related to a database?" I don't know, I'm just saying. That is very rude. Best, Adrian

            P N 2 Replies Last reply
            0
            • A adrian564

              Um, no. I'm new to the forum and new to c#. I do not believe its a totally unrelated subject line. If it is unrelated please forgive me almighty guardian watcher of codeproject.com. I just need some direction, if your not willing to help then do not attempt to convict me by saying I'm posting unrelated subject lines. Maybe, next time you can say something as "how is this related to a database?" I don't know, I'm just saying. That is very rude. Best, Adrian

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Damn straight it is.

              1 Reply Last reply
              0
              • A adrian564

                Um, no. I'm new to the forum and new to c#. I do not believe its a totally unrelated subject line. If it is unrelated please forgive me almighty guardian watcher of codeproject.com. I just need some direction, if your not willing to help then do not attempt to convict me by saying I'm posting unrelated subject lines. Maybe, next time you can say something as "how is this related to a database?" I don't know, I'm just saying. That is very rude. Best, Adrian

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #7

                adrian564 wrote:

                That is very rude.

                As opposed to this little rant? You are a self professed newbie here, so my advice would be to choose your words more carefully when responding to one of the outstanding members of this community. Take some time re-familiarize yourself with the guidelines and etiquette here and you will get better results.


                I know the language. I've read a book. - _Madmatt

                A P 2 Replies Last reply
                0
                • N Not Active

                  adrian564 wrote:

                  That is very rude.

                  As opposed to this little rant? You are a self professed newbie here, so my advice would be to choose your words more carefully when responding to one of the outstanding members of this community. Take some time re-familiarize yourself with the guidelines and etiquette here and you will get better results.


                  I know the language. I've read a book. - _Madmatt

                  A Offline
                  A Offline
                  adrian564
                  wrote on last edited by
                  #8

                  I did not mean for it to offend anyone, I'm just frustrated with this problem. My only concern was he could have wasted his time trying to help instead of condemning me by discouraging future viewers from helping me solve my problem. But, you are probably right, I am the new guy and I will review the guidelines and etiquette here. Obviously, I am doing something wrong. Best, Adrian

                  P 1 Reply Last reply
                  0
                  • N Not Active

                    adrian564 wrote:

                    That is very rude.

                    As opposed to this little rant? You are a self professed newbie here, so my advice would be to choose your words more carefully when responding to one of the outstanding members of this community. Take some time re-familiarize yourself with the guidelines and etiquette here and you will get better results.


                    I know the language. I've read a book. - _Madmatt

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #9

                    Mark Nischalke wrote:

                    one of the outstanding members of this community

                    May I quote you on that? :-D

                    N 1 Reply Last reply
                    0
                    • A adrian564

                      I did not mean for it to offend anyone, I'm just frustrated with this problem. My only concern was he could have wasted his time trying to help instead of condemning me by discouraging future viewers from helping me solve my problem. But, you are probably right, I am the new guy and I will review the guidelines and etiquette here. Obviously, I am doing something wrong. Best, Adrian

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      On your original post you didn't give details, and didn't answer when asked about the error you received, so no one could help.

                      1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        Mark Nischalke wrote:

                        one of the outstanding members of this community

                        May I quote you on that? :-D

                        N Offline
                        N Offline
                        Not Active
                        wrote on last edited by
                        #11

                        Some one must have hacked my account. I don't know where that came from ;P


                        I know the language. I've read a book. - _Madmatt

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups