File tree Expand file tree Collapse file tree
src/Modules/SimplCommerce.Module.Core/Data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,12 +49,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
4949
5050 RegisterCustomMappings ( modelBuilder , typeToRegisters ) ;
5151
52- foreach ( var property in modelBuilder . Model . GetEntityTypes ( )
53- . SelectMany ( t => t . GetProperties ( ) )
54- . Where ( p => p . ClrType == typeof ( decimal ) || p . ClrType == typeof ( decimal ? ) ) )
55- {
56- property . SetColumnType ( "decimal(18,2)" ) ;
57- }
52+ //foreach (var property in modelBuilder.Model.GetEntityTypes()
53+ // .SelectMany(t => t.GetProperties())
54+ // .Where(p => p.ClrType == typeof(decimal) || p.ClrType == typeof(decimal?)))
55+ //{
56+ // Console.WriteLine("decimal property: " + property.Name);
57+ // //property.SetColumnType("decimal(18,2)");
58+ //}
5859
5960 if ( Database . ProviderName == "Microsoft.EntityFrameworkCore.Sqlite" )
6061 {
You can’t perform that action at this time.
0 commit comments