Permalink
Browse files

[Contrib][T4] Add missing float datatype mapping

  • Loading branch information...
1 parent b6cb12d commit 3af22b5b6bcacbf59f9ef2c0cc5c2817768e2153 @spaccabit committed Nov 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/FluentMigrator.T4/CodeGenerator.cs
@@ -263,6 +263,9 @@ public string GetMigrationTypeFunctionForType(string type, int size, int precisi
case "double":
sysType = "AsDouble()";
break;
+ case "float":
+ sysType = "AsFloat()";
+ break;
case "decimal":
sysType = "AsDecimal(" + sizeStr + precisionStr + ")";
break;

0 comments on commit 3af22b5

Please sign in to comment.