Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: "Chad Z. Hower aka Kudzu" <cpub@xxxxxxxxx>
- Date: Wed, 15 Jun 2005 22:48:32 +0300
"Frans Bouma [C# MVP]" <perseus.usenetNOSPAM@xxxxxxxxx> wrote in
news:xn0e3jba0nyipg000@xxxxxxxxxxxxxxxxxx:
> In sync with the database? Just like that? I don't think so. :)
Yes it is. I think you are not understanding exactly whats going on. I'll be writing more articles soon.
But this "system" is in use in several Fortune 500's, some of which are processing millions of
transactions a day. But what Ive exposed in the article is just a peak at the DAL layer.
> Either
> you have to update class mappings based on a changed schema, or you
They arent class mappings per se - its an object WRAPPER of the DB tables. When you embed
SQL in your app and you change the DB you cannot find mismatches until run time. With this
system, it regenerates the interfaces and all conflicts are found at comile time and then easily
resolved from there.
> have to migrate the schema based on class changes. I can tell you,
> that's far from 'automatic'.
Because you are not seeing the whole picture. Until I finish the other articles, remember that what
you have seen so far is just a peek at the DAL, nothing more. So your assumptions of how its used
in a bigger picture sceanrio are invalid because you are assuming in your system that its a 1:1
replacement for whatever you use now.
> Although I support dyn. sql of course, the problem I have with
> your reasoning is that you claim your solution is truly database
Its fully DB independent. We have systems running on the older version which run on Oracle,
SQL server, DB2, and Firebird. In fact the demo runs on Firedbird and SQL server, and they are
fairly different databases. Firebird is closer to Oracle.
> independent, though at the same time require things in the schema
> (like a horrible sequence table in sqlserver... )
First of all, if you read the article you would note that this is optional and not a requirement.
Second of all - sequences are not horrible, identity fields are the item that is poor. Identity
fields cause bottlenecks in transaction and multitable inserts, etc by forcing record inserts
prematurely. Identity/autoincs are widely regarded as a not very good practice.
Given the choice of implementing autoinc/id fields in other DB's that use sequences, or implenting
sequences in the others, its obvious which choice to use.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
.
- Follow-Ups:
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Frans Bouma [C# MVP]
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- References:
- Want to write your SQL statements and even stored procedures in pure C#?
- From: Chad Z. Hower aka Kudzu
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Rogas69
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Chad Z. Hower aka Kudzu
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Rogas69
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Chad Z. Hower aka Kudzu
- Re: Want to write your SQL statements and even stored procedures in pure C#?
- From: Frans Bouma [C# MVP]
- Want to write your SQL statements and even stored procedures in pure C#?
- Prev by Date: Re: Want to write your SQL statements and even stored procedures in pure C#?
- Next by Date: Re: Typed Dataset Reserved Word: Locale
- Previous by thread: Re: Want to write your SQL statements and even stored procedures in pure C#?
- Next by thread: Re: Want to write your SQL statements and even stored procedures in pure C#?
- Index(es):
Relevant Pages
|
Loading