From: Jiří Č. <ji...@ci...> - 2015-12-05 15:54:15
|
> 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 |