|
Hum Dum wrote: May be i am asking worng ?
Pretty much.
ADO.net relies on derived versions of Connection, Command, and other sundry classes. Each database -- Sql Server, Oracle, MySql, Ingres, Firebird, Cache, etc. -- has its particular classes in some namespace; if you want to use ADO.net, you will need to use the classes in the appropriate namespace.
Or use something (e.g. Linq) that hides the ADO.net so you don't see it even though you're using it.
Or don't use ADO.net -- you can use older database access techniques, but ADO.net is far superior to any others I have used.
|
|
|
|
|
Sounds like a test question.
Certainly you can do without CommandBuilder, but ADO.net requires a Command, even if it's buried in a DataAdapter.
|
|
|
|
|
PIEBALDconsult wrote: Sounds like a test question.
Yup it is !
PIEBALDconsult wrote: even if it's buried in a DataAdapter.
That i know (and is my intial thought) also Odbc, Oledb namespaces.
But without all these namspaces.
Is there any way ?
|
|
|
|
|
Hum Dum wrote: But without all these namspaces.
Is there any way ?
How do you think we did it before ADO.net came along (and lifted us from the dark ages)?
|
|
|
|
|
I don't know about you, but I sacrificed chickens and did the hoodoo dance.
|
|
|
|
|
Ah, PRO*C, I did that too.
|
|
|
|
|
Hum Dum wrote: But without all these namspaces.
Is there any way ?
Well, you could always write your own protocol but that's time consuming, prone to errors and a bit, how shall I put it, boneheaded stupid.
|
|
|
|
|
Hum Dum wrote: But without all these namspaces.Is there any way ?
Those namespaces exist to serve you that very purpose. If you don't want to use any of those, AND you don't want to write your own stuff from scratch, then the only way is to p/invoke into the beast and use one of the things it has to offer.
Then it would be pointless to use .NET.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Hum Dum wrote: Without using SqlCommand or CommandBuilder object,
Is it possible to interact with database?
Yes, by capturing the output of SQLCMD/Isql.exe for example.
I are Troll
|
|
|
|
|
I hadn't thought of that. MySql also has a command-line utility.
|
|
|
|
|
|
You could use LINQ to SQL[^]
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
Hello everybody,
i have an ip address. Now how can i get it's host name.
Thanks
If you can think then I Can.
|
|
|
|
|
DNS.GetHostByAddress[^].
FYI - C# is not my primary competency. No prizes for guessing how did I find an answer.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Precise answer.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
|
If it's your address wouldn't it be your name?
|
|
|
|
|
Dear all,
I'm looking for a method to control the input to one software from my code and receive the output of that software to use in my code. Some one call that is intergrating one software to another software. For example, I want to control the text input to TextAloud (using to convert text to human's voice). Anyone know about that?
Thanks in advance.
Best regards.
dnqhung
|
|
|
|
|
dnqhung wrote: Some one call that is intergrating one software to another software.
It's called Automation in South Asia.
dnqhung wrote: For example, I want to control the text input to TextAloud (using to convert text to human's voice). Anyone know about that?
You'll have a better chance of doing this with programs that are built with automation support in mind from the beginning. In which case, you could use the interfaces for automation exposed by the program.
In other cases, you could write code that generates events like mouse click, key presses, read the values of controls, etc., by writing code. This technique may or may not work, depending on the type of the UI you're dealing with.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Long time ago,i read one similar project in this forum. He intergrated one chat software (may be Window live messenger, i don't remember exactly) in to his application. However in this case, he used COM interface. In my case, how can i write the interface if the software don't support COM interface. Can you explain more about "automation". In my problem, i want to control a software run "underground" (still running when you close it's main window, such as IDM), so how can i write code that generates events like mouse click, key presses, read the values of controls, etc.
dnqhung
|
|
|
|
|
|
it's not command-line utility. i want to control one text to speed software.
thanks.
dnqhung
|
|
|
|
|
I have started to make a tile map editor, its going to be my first project of a reasonable size and I have made a start
It is in .Net 4 and uses windows forms + CodeContracts.
Currently I have worked on a tool bar and its "Create a map" behaviour.
It would be really helpful if people could have a look of my progress so far, and give me some feedback.
I am not too sure how good my code/architecture is and it would help me allot!
I have uploaded the project code as a .zip and it should be easy to launch: http://www.mediafire.com/?oaa56nhu2as7zy0[^]
Thanks
|
|
|
|
|
Sorry, but...
Would you download and open anonymous zip files from people you do not know?
Nope. Nor would I.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
How to destroy object (observer) if it is referenced in another class and in destruction code of the observer it asks the subject to detatch it?
In C++ it is possible to call delete to invoke destructor but in C# assigning null to observer object will not release it as there is active reference in the subject.
Once the observer attached to its subject it is not possible to stop observation following strictly destructor patterns as in C++.
What is the best way to destroy observer object?
Чесноков
|
|
|
|