Re: Creation of DateTimeOffset columns when using SQL Server

297 views
Skip to first unread message

Daniel Lee

unread,
Mar 12, 2013, 6:15:53 PM3/12/13
to fluentmigrato...@googlegroups.com
Hi,

There doesn't seem to be an explicit option for DateTimeOffset but you can always do as a custom type. (This is the class with the types for the expression builder: https://github.com/schambers/fluentmigrator/blob/master/src/FluentMigrator/Builders/ExpressionBuilderWithColumnTypesBase.cs)

Create.Table("TestTable").WithColumn("test").AsCustom("DateTimeOffset");

//Daniel

John Teague

unread,
Mar 12, 2013, 11:22:37 PM3/12/13
to fluentmigrato...@googlegroups.com
that's what we do.  You can then make your own extension method for it.


--
You received this message because you are subscribed to the Google Groups "FluentMigrator Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentmigrator-goog...@googlegroups.com.
To post to this group, send email to fluentmigrato...@googlegroups.com.
Visit this group at http://groups.google.com/group/fluentmigrator-google-group?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages