Skip to content

Commit

Permalink
Add Support for money Store Type in Data Annotations (#2747)
Browse files Browse the repository at this point in the history
* add money annotation

* add property name.
  • Loading branch information
dsum27 authored Dec 19, 2024
1 parent 3be8b83 commit efe9a32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core/RevEng.Core.80/Routines/Scaffolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ private void GenerateProperties(List<ModuleResultElement> resultElements, bool n
{
Sb.AppendLine($"[Column(\"{property.Name}\", TypeName = \"{property.StoreType}({property.Precision},{property.Scale})\")]");
}
else if (property.StoreType == "money" && useDecimalDataAnnotation)
{
Sb.AppendLine($"[Column(\"{property.Name}\", TypeName = \"{property.StoreType}\")]");
}
else
{
if (!string.IsNullOrEmpty(propertyNameAndAttribute.Item2))
Expand Down

0 comments on commit efe9a32

Please sign in to comment.