Though it's interesting, I'm personally against these "too much"
custom hacks. First the de-facto standard in SqlClient doesn't support
any of these, even the MS SQL has option to define i.e. attributes.
Second, it creates another metadata that's merged with real structure.
And last if the information isn't in database structure, you should
probably *very* carefully change you model and only this model, not
any generated from the database. The introduction of i.e. PK_GEN was
driven by lack of metadata support for "autoincrements" in Firebird
(or the common datatypes, i.e. boolean) not to extend anything there.

It also ads a lot of new custom features that I (we) have to keep
compatible with new versions of EF and maintain. And as EF isn't under
our control, we don't know what will MS change etc.

On Thu, Mar 18, 2010 at 02:17, sasha <trofim...@gmail.com> wrote:
> 1) any column of table or view field (including not primary keys) with
> #PK_GEN# is a key field with autoincrement

Though it's possible, why would you wanna mark field as PK if it's not
in database? This may (and will, you bet) strange errors.

> 2) any column of table or view field  (including not primary keys) with
> #KEY# is a key field without autoincrement

Similar to 1).

> 3) any column of table or view field (including not foreign keys) with
> #REFERENCES#<table_name>.<fieldname># is a foreign key

This doesn't seem like a good idea for me.

-- 
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to