access data base
-
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
-
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
-
-
And you thought that reposting it with a totally unrelated subject line would help? :confused:
-
And you thought that reposting it with a totally unrelated subject line would help? :confused:
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
-
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
Damn straight it is.
-
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
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
-
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
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
-
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
Mark Nischalke wrote:
one of the outstanding members of this community
May I quote you on that? :-D
-
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
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.
-
Mark Nischalke wrote:
one of the outstanding members of this community
May I quote you on that? :-D
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