How to implement the field decimal(5,2) in EntityFrameworkCore 1.0 rc2?

Caesar

How to implement the field decimal(5,2) in EntityFrameworkCore 1.0 rc2 ?

HasPrecision seems to be not available anymore?

AaronLS

I'm seeing some examples like this:

 entityBuilder.Property(r => r.TotalScore)
            .HasColumnType("decimal(5,2)")
            .IsRequired(true);

and the code to support this is here, so hopefully this is supported in the version you're using:

https://github.com/aspnet/EntityFramework/blob/f416dd9a71a5a6a69715b4ba40a37e6f9da751ef/src/Microsoft.EntityFrameworkCore.Relational/Metadata/Internal/RelationalPropertyBuilderAnnotations.cs

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Stuck converting some RC1 code to RC2

From Java

How do I uninstall "Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1"?

From Dev

How to uninstall MS .NET Core 1.0 RC2 VS 2015 Tooling Preview 1 without the installer?

From Dev

asp.net core 1.0 mvc RC2 tagBuilder method with HtmlEncoder() worked in RC1 not working RC2

From Dev

ASP.NET Core 1 RC2 - database schema

From Dev

asp net core 1 RC2 AccountController injection

From Dev

ASP.NET Core 1 RC2 - database schema

From Dev

How to enable WCF Service to use .NET Core RC2?

From Dev

Issues after migration of Asp.Net Core RC1 to RC2

From Dev

Entity Framework Core error after migrating ASPNET MVC RC1 into RC2

From Dev

What is the difference between red5 RC1 and RC2?

From Dev

Visual studio hints to download rc2 packages instead of rc1

From Dev

Asp.net core RC1 to RC2 integration testing: where did UseServices go?

From Dev

Why I'm getting this incompatibilities issues migrating from .net core rc1 to rc2

From Dev

Yii 2 ActiveForm form field how to implement separator in checkboxlist?

From Dev

Whats the differences between .net Core Installer (RC2) and .Net Core SDK Installer (Preview 1)?

From Dev

The specified account already exists - .NET Core RC2 tooling Preview 1

From Dev

EF7 .NET Core 1 RC2 Add-Migration failing

From Dev

ASP.NET Core 1 RC2 web application entry point

From Dev

asp.net core 1 rc2: Creating a view component

From Dev

Visual Studio 2015 .Net Core RC2 Tooling Preview 1

From Dev

Angular 2: How to use template reference variables in the new forms from RC2 to display error messages?

From Dev

How can I display HTML in a <div> with Angular 1.2.0 - rc2

From Java

How to return HTTP 500 from ASP.NET Core RC2 Web Api?

From Dev

How to manually reload IOptions in ASP.NET Core RC2 application

From Dev

How to check ASP.NET Core RC2/1.0 Razor views for compile errors?

From Dev

How to run the localization example for ASP.NET 5 MVC 6 rc2

From Dev

How to disable browser cache in ASP.NET core rc2?

From Dev

How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2

Related Related

  1. 1

    Stuck converting some RC1 code to RC2

  2. 2

    How do I uninstall "Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1"?

  3. 3

    How to uninstall MS .NET Core 1.0 RC2 VS 2015 Tooling Preview 1 without the installer?

  4. 4

    asp.net core 1.0 mvc RC2 tagBuilder method with HtmlEncoder() worked in RC1 not working RC2

  5. 5

    ASP.NET Core 1 RC2 - database schema

  6. 6

    asp net core 1 RC2 AccountController injection

  7. 7

    ASP.NET Core 1 RC2 - database schema

  8. 8

    How to enable WCF Service to use .NET Core RC2?

  9. 9

    Issues after migration of Asp.Net Core RC1 to RC2

  10. 10

    Entity Framework Core error after migrating ASPNET MVC RC1 into RC2

  11. 11

    What is the difference between red5 RC1 and RC2?

  12. 12

    Visual studio hints to download rc2 packages instead of rc1

  13. 13

    Asp.net core RC1 to RC2 integration testing: where did UseServices go?

  14. 14

    Why I'm getting this incompatibilities issues migrating from .net core rc1 to rc2

  15. 15

    Yii 2 ActiveForm form field how to implement separator in checkboxlist?

  16. 16

    Whats the differences between .net Core Installer (RC2) and .Net Core SDK Installer (Preview 1)?

  17. 17

    The specified account already exists - .NET Core RC2 tooling Preview 1

  18. 18

    EF7 .NET Core 1 RC2 Add-Migration failing

  19. 19

    ASP.NET Core 1 RC2 web application entry point

  20. 20

    asp.net core 1 rc2: Creating a view component

  21. 21

    Visual Studio 2015 .Net Core RC2 Tooling Preview 1

  22. 22

    Angular 2: How to use template reference variables in the new forms from RC2 to display error messages?

  23. 23

    How can I display HTML in a <div> with Angular 1.2.0 - rc2

  24. 24

    How to return HTTP 500 from ASP.NET Core RC2 Web Api?

  25. 25

    How to manually reload IOptions in ASP.NET Core RC2 application

  26. 26

    How to check ASP.NET Core RC2/1.0 Razor views for compile errors?

  27. 27

    How to run the localization example for ASP.NET 5 MVC 6 rc2

  28. 28

    How to disable browser cache in ASP.NET core rc2?

  29. 29

    How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2

HotTag

Archive