Skip to content

Commit 6083ae4

Browse files
committed
added decimal
1 parent 4d24c0a commit 6083ae4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nuget/Sqlite_net.SourceGenerator/SQLiteFastColumnSetterGenerator.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,13 @@ static void GeneratePropertySetter(StringBuilder sb, PropertyInfo property)
276276
sb.AppendLine($" typedObj.{property.PropertyName} = SQLite3.ColumnDouble(stmt, index);");
277277
break;
278278

279-
case "float":
279+
case "decimal":
280+
case "Decimal":
281+
case "System.Decimal":
282+
sb.AppendLine ($" typedObj.{property.PropertyName} = SQLite3.ColumnDouble(stmt, index);");
283+
break;
284+
285+
case "float":
280286
case "Single":
281287
case "System.Single":
282288
sb.AppendLine($" typedObj.{property.PropertyName} = (float)SQLite3.ColumnDouble(stmt, index);");

0 commit comments

Comments
 (0)