> 1. readonly IFbMigrationSqlGeneratorBehavior _behavior;
> Is used only in migration operations DropColumn/AlterColumn, not used
> in AddColumn.

The AddColumnOperation calls Generate method for ColumnModel and this
method handles the identity stuff. Or do you mean something else?

> 2. We have additional implementation of Check in (0,1) for boolean
> fields like implemented in SsdlToSql.cs

Good idea. Added. (Testing it as we speak.)

> 3. CreateItemName function doesn't support names longer than 31
> character.

Do you think it should throw exception? I would rather let that for
Firebird. Somebody might tweak the script or something like that.

I know you proposed hashing the name, but that's not reasonable general
solution. The database would look gibberish for outside view. Nobody
would know what's what.

> 4. Also, I don't see where IFbMigrationSqlGeneratorBehavior can be
> injected from client's app code.

In ctor.

> 5. I think the generator creation code in
> DefaultFbMigrationSqlGeneratorBehavior will be copied to a possible
> new implementation, so it is better to split logic. See base class:

Agree. I'd like to first see somebody outside implement other behavior.
Then we can talk about what to extract - i.e. the system tables logic
etc.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to