On some existing solutions currently not using Entity Framework we are working with ROWGUID attributes designating the ROWGUIDCOL uniqueidentifier column on a table, as well as FILEGROUP specifications for tables and indices (http://msdn.microsoft.com/en-us/library/ms174979(v=sql.105).aspx). We would like to be able to continue using these and are therefore thinking about extending the Entity Framework Migrations.
ROWGUID and FILEGROUP are probably relatively specific to SQLServer. The idea is therefore to use the anonymousArguments of CreateTable and CreateIndex to implement this. An anonymous instance like new { Filegroup = "SomeFilegroup" } could be passed to CreateTable and CreateIndex to specify a filegroup. An anonymous instance like new { RowGuidColumn = "RowGuidColumnName" } could be passed to CreateTable to indicate which column is the ROWGUIDCOL.
Btw: I was looking for a way to pass an anonymousArguments parameter to individual columns, but unfortunately the framework uses a list of ColumnModels within the CreateTableOperation, instead of a list of AddColumnOperations.
Please let me know your thoughts about whether this could be interesting for some future version of Entity Framework.
ROWGUID and FILEGROUP are probably relatively specific to SQLServer. The idea is therefore to use the anonymousArguments of CreateTable and CreateIndex to implement this. An anonymous instance like new { Filegroup = "SomeFilegroup" } could be passed to CreateTable and CreateIndex to specify a filegroup. An anonymous instance like new { RowGuidColumn = "RowGuidColumnName" } could be passed to CreateTable to indicate which column is the ROWGUIDCOL.
Btw: I was looking for a way to pass an anonymousArguments parameter to individual columns, but unfortunately the framework uses a list of ColumnModels within the CreateTableOperation, instead of a list of AddColumnOperations.
Please let me know your thoughts about whether this could be interesting for some future version of Entity Framework.