|
rao raja wrote: ..if u dont knw ..does not matter.
He knows the answer - but he is right to say that the questions look like homework. If you want to discuss these subjects then you might like to phrase the questions in such a way that it looks like you are discussing the subject out of genuine interest rather than as an answer to a homework question.
|
|
|
|
|
For a good discussion it would be helpfull to know your points.
|
|
|
|
|
rao raja wrote: if u dont knw ..does not matter
ROTFL - of course I *know*. But, if you want discussion, you need to lead off. If you want homework answers, you're in the wrong place.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I'll do your homework for $50 a question
Is that Australian dollars or US Dollars?
|
|
|
|
|
rao raja wrote: (a) testing of non web based software system is completly different from based software system.?
Yes. One you test over the web, the other you don't.
rao raja wrote: (b) design phase of object oriented system need more cost and effort than design phase of functional oriented system?
No. An object oriented system doesn't need much design you can just get stuck in and code away. A procedural based system needs lots of planning and design to decide on the properties and methods of all those procedures!
rao raja wrote: (c) message passing features of object oriented paradigm play an important role in effecting effecincy of object oriented system?
No. All object oriented systems are pretty useless at passing messages. This forum is an object oriented system and look at how craply most messages are passed here? (See OP for evidence)
rao raja wrote: (d) maintanance of file based system is cheaper in terms of time and effort than data based system.?
No. File based system have lots of files, database systems usually only have one database. One vs many, easy answer!
That'll be $50 please.
PS If google gives you a different answer to any of these its lying!
|
|
|
|
|
The reason I didn't answer is, if it's his homework, he's not going to learn anything by copying your answer, now is he ?
badgrs wrote: This forum is an object oriented system
Are you sure ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
rao raja wrote: testing of non web based software system is completly different from based software system.?
Defining testing? As a general concept, testing is making sure something works as specified.
rao raja wrote: design phase of object oriented system need more cost and effort than design phase of functional oriented system?
Again design is a bit of a generalization. A more detailed design is going to cost more time and resources than a top level design.
rao raja wrote: d) maintanance of file based system is cheaper in terms of time and effort than data based system.?
Depends on who is doing it and who built the file system. I've spent many a hour fixing flat file based systems, where as something like SQL Server has lots of tools alreafy built in.
|
|
|
|
|
rao raja wrote: (a) testing of non web based software system is completly different from based software system.?
Testing is a waste of time, because you'll never discover all the problems. It's much more efficient to ship an untested product and have your customers report the problems.
rao raja wrote: design phase of object oriented system need more cost and effort than design phase of functional oriented system?
Design is expensive and pretty much worthless. What you want to achieve is the longest development cycle possible due to continual rewrites so that you can continue drawing a lucrative salary and the venture capitalist funding your company can continue writing off business losses on his taxes.
rao raja wrote: message passing features of object oriented paradigm play an important role in effecting effecincy of object oriented system?
OOP message passing is archaic technology. Current trends are moving toward quantum principles in which the receiver gets the message before the sender sends it.
rao raja wrote: maintanance of file based system is cheaper in terms of time and effort than data based system.?
Definitely. A flat file based system is much cheaper to maintain since you don't have to worry about indexing, performance, optimization, clustering, distributed servers, etc. All you need is a big hard disk, and hard disk prices are plummetting. Just last week my client discovered he could buy a 400GB hard disk for the same price that a 320GB hard disk was selling for six months ago.
rao raja wrote: are these true or false
All true!
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
|
Superb, pity I read this after my post otherwise it would have ended up under here
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
There are no right and wrong answers to those questions if you give your reasoning - they seem pretty subjective to me.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Can any one tell me why do I get this message from my catch block..
Cannot write to the registry key
I'm trying to write to the registry using the following code
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
key.SetValue("X", "xxx", RegistryValueKind.String);
Please advise,
Many thanks
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hello,
The OpenSubKey method has the possibility to set the key writeable.
Just use the second parameter (BOOLEAN).
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
All the best,
Martin
|
|
|
|
|
|
|
Hi All,
I have a table control that is dynamically populated from my db, my db has 3 rows and the 3 rows are displayed which is working fine. what I want to achieve is "I want the table control to display a separator after a record is displayed" what I mean is this:
Assuming I have my 3 records displayed this way:
A
B
C
I want the table control to display a line separator like this
A
-
B
-
C
-
can any one help me out please?
thanks.
|
|
|
|
|
once you realize that a row is completed add a tr dynamically to your table, that way i guess you could get a seperator!!
Gautham
|
|
|
|
|
thanks.
But how do I add tr to a table control in code behind?
|
|
|
|
|
craete a tablerow like htmltablerow tr in your code, lets say your table id is table1 then table.add(tr) should do i guess!!!, syntax might be wrong!!!
Gautham
|
|
|
|
|
Is it possible to have multiple machine.config files in a computer.
Ananth
|
|
|
|
|
Hi,
We have decided to develop our new portal using ORM tool, which should be flexible enough to support multiple DB, say for example SQLServer, MySql, Oracle etc. We are using Visual studio 2005, ASP .Net 2.0 using C# 2.0
We got some suggestion to go for DevExpress XPO, We tried that but with XPO We found that if We go for Stored Procedure, We had to use sql parameter and if so then how that could be db independent. and we higly use SP's and even with using XPO there might be cases that we might have to use SP and if at that time our db will be Oracle or MySql then?
Any help would be highly appreciated.
Thanks,
-- modified at 6:49 Thursday 8th February, 2007
Best regards,
Niraj Parikh
|
|
|
|
|
Niraj Parikh wrote: I had to use sql parameter and if so then how that could be db independent.
what do you mean with sql parameter? do you mean binding variables?
like call myStoredProcedure(:1,:2) ?
m@u
|
|
|
|
|
Hi m,
Thx for ur reply.
Here abt "sql parameter" I mean "System.Data.SqlClient.SqlParameter" I can use "IDataParameter" also but in that case, I am unable to find size property for IDataPrameter.
If XPO is the right choice for Object-Relational Mapping Tool to support multiple DB then is it possible to support stored procedure with that?
Thanks,
-- modified at 6:58 Thursday 8th February, 2007
Niraj Parikh
|
|
|
|
|
Hi
i can't say that xpo is definitely the right choice for this, but what i can say is that i work pretty often with binding variables in oracle. there, thet parameter type is, (of course ), called OracleParameter and has also a property called Size, which i have never assigned anything to and it always worked fine yet..
However, if you look at System Data, you find the basic Class of all Connections called IdbConnection. so theoretically you could have one class which creates depending on what dbType you want to connect an SQLConnection or a MySQLConnection or whatever. to the other Classes which use the connection, you simply pass it as an IdbConection instance.
IdbConnection implements a function called CreateCommand() which passes you the basic-Class of all DBCommands: an IdbCommand. so you get an SQLCommand or whatever wrapped in an IdbCommand and you can set the CommandText and all the other things you need and you're still db-Independent.
that means, you could do it even without XPO because the .net System.Data - Namespace gives you theoretically everything you need to create a DB-Independent Application.
try the following:
let's say you implement a Connect() Method like this:
<br />
private IdbConnection Connect(string User, string Pass, string Connection, string Schema, string DBType)<br />
{<br />
IdbConnection RetVal = null;<br />
switch(DBType.ToLower())<br />
{<br />
case "oracle":<br />
{<br />
RetVal = new OracleConnection(User, Pass, Connection);<br />
IdbCommand cmd = RetVal.CreateCommand();<br />
cmd.Connection = RetVal;<br />
cmd.CommandText = string.Format("Alter Session set Current_Schema = \"{0}\"",Schema.ToUpper());<br />
cmd.ExecuteNonQuery();<br />
break;<br />
}<br />
case "sql":<br />
{<br />
}<br />
case "whatever":<br />
{<br />
}<br />
}<br />
}<br />
now you have a nice little Method that gives you a DataBase Independend Connection.
you can Create and Execute Commands on it without even knowing what Kind of DB your sitting on.
if you want to execute a StoredProcedure with 2 Parameters you simply say:
<br />
private void ExecuteSomeSP()<br />
{<br />
IdbCommand cmd = myConnection.CreateCommand();<br />
cmd.CommandText = "Execute Blah(:1,:2)";<br />
idbParameter Param = cmd.CreateParameter();<br />
Param.DbType = DbType.String;<br />
Param.Direction = ParameterDirection.Input;<br />
Param.Value = "Kaboom!";<br />
Param = cmd.CreateParameter();<br />
Param.DbType = DbType.Int64;<br />
Param.Direction = ParameterDirection.Input;<br />
Param.Value = (long)250;<br />
cmd.Connection = myConnection;<br />
cmd.ExecuteNonQuery();<br />
}<br />
so you see, by only accessing the System.Data Namespace you can theoretically create Database Independent Applications. I guess XPO will just wrap it to make it more comfortable to use, but basically it works without installing any third-party - Product.
I hope this helps
greets
M@u
|
|
|
|
|
Hi
Yes it really helped me a lot. Thanks for your prompt reply bro.
I have voted 5 for your reply and that shows how much I am satisfied with ur reply. Tthanx buddy for excellent explaination.
And just for your knowledge XPO is one of ORM tool, which Mapps Objects to database. it creates db tables and relationships based on your classes and relationships betwn them. Relationships among classes, we can achive using Association and attributes, we just need to create classes and ORM tools creates database tables along with relationship/constraints for you and thats for any database.
So I have come to know that without any TPC we can create db independent application using strength of core .net.
one more thing, while implementing your code I came across IDataParameter also. Can you please update me what is that and whats difference betwn
IDbDataParameter and IDataParameter? is it a alternate of each other in discussed case?
Thanks
Niraj Parikh
|
|
|
|