I used the http://msdn.microsoft.com/en-us/data/jj200620 video to learn how to create a C# Console Application that accesses an old SQL Server database.
I have some of the fields in the database set as Money
. The entity framework created a model from the existing database and made a property with the type decimal?
. This makes it interesting to work with it in C# as a function becomes:
private static string WriteMoney(decimal? item, string output)
which works ok.
I can not find anything on the internet on decimal?
. Clearly Money
is a decimal
, and I could fix the issue by changing the SQL database types. This is not causing a hassle, merely an interesting observation.
Anyone encountered this before?