Skip to content

Commit 53fccb6

Browse files
committed
added NUMERIC type to typa mapping source
1 parent b8e4a3f commit 53fccb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FirebirdSql.EntityFrameworkCore.Firebird/Storage/Internal/FbTypeMappingSource.cs

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class FbTypeMappingSource : RelationalTypeMappingSource
4747
readonly FloatTypeMapping _float = new FloatTypeMapping("FLOAT");
4848
readonly DoubleTypeMapping _double = new DoubleTypeMapping("DOUBLE PRECISION");
4949
readonly DecimalTypeMapping _decimal = new DecimalTypeMapping($"DECIMAL({DefaultDecimalPrecision},{DefaultDecimalScale})");
50+
readonly DecimalTypeMapping _numeric = new DecimalTypeMapping($"NUMERIC({DefaultDecimalPrecision},{DefaultDecimalScale})");
5051

5152
readonly FbDateTimeTypeMapping _timestamp = new FbDateTimeTypeMapping("TIMESTAMP", FbDbType.TimeStamp);
5253
readonly FbDateTimeTypeMapping _date = new FbDateTimeTypeMapping("DATE", FbDbType.Date);
@@ -77,6 +78,7 @@ public FbTypeMappingSource(TypeMappingSourceDependencies dependencies, Relationa
7778
{ "FLOAT", _float },
7879
{ "DOUBLE PRECISION", _double },
7980
{ "DECIMAL", _decimal },
81+
{ "NUMERIC", _numeric },
8082
{ "TIMESTAMP", _timestamp },
8183
{ "DATE", _date },
8284
{ "TIME", _timeSpan },

0 commit comments

Comments
 (0)