MigSharp icon indicating copy to clipboard operation
MigSharp copied to clipboard

Add support for the ROWGUIDCOL flag

Open stsrki opened this issue 8 years ago • 1 comments

I would like to have a a feature request to add ROWGUIDCOL flag when creating table. This flag is used for replication in SqlServer.

Example SQL:

CREATE TABLE MyTable(
    [MyTableId] [uniqueidentifier] ROWGUIDCOL  NOT NULL,
    ...

Possible implementation:

db.CreateTable( "MyTable" )
    .WithPrimaryKeyColumn( "MyTableId", System.Data.DbType.Guid ).HavingNewSequentialGuidAsDefault().WithRowGuid();

PS. Note that this is supported in SqlServer!

stsrki avatar Sep 05 '17 11:09 stsrki

Makes sense. I personally do not need this feature. So feel free to submit a PR.

dradovic avatar Sep 06 '17 09:09 dradovic