Created
August 31, 2010 19:17
-
-
Save timgthomas/559557 to your computer and use it in GitHub Desktop.
Define a custom SQL type in a Fluent NHibernate mapping file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FooMap : ClassMap<Foo> | |
{ | |
public FooMap() | |
{ | |
Table("Foo"); | |
Id(f => f.Id, "Id").GeneratedBy.Identity(); | |
Map(f => f.CustomField).CustomSqlType("varchar (60)"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment