Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • database

Decimal precision codefluent

Apr 22, 2016 See the question and my original answer on StackOverflow

You can use SQL Server Producer specific size and dataType attributes, like this:

<cf:property name="MyNumericProperty"
    typeName="decimal"
    cfps:size="6,2"
    cfps:dataType="numeric"
    xmlns:cfps="http://www.softfluent.com/codefluent/producers.sqlserver/2005/1"
/>

Note that, most of the time, decimal is also overkill in .NET (16 bytes).

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms