yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

DateTimeOffset field default value is set to null #310

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a table with a column of type DateTimeOffset (not null)
2. Generate code with NetTiers
3. Compile the solution

What is the expected output? What do you see instead?

the expected ouput should be

public System.DateTimeOffset StartingTradeHour = DateTimeOffset.MinValue;

but the generated code tries to initialize the field with null value

public System.DateTimeOffset StartingTradeHour = null;

What version of .netTiers and CodeSmith are you using?

Please provide any additional information below.

the same error occurs in the UnitTest module as well

Original issue reported on code.google.com by shai...@gmail.com on 31 May 2010 at 11:51

GoogleCodeExporter commented 9 years ago
forgot to mention .netTiers and CodeSmith version

.netTiers version 2.3
CodeSmoith version 5.2

Original comment by shai...@gmail.com on 31 May 2010 at 11:53

GoogleCodeExporter commented 9 years ago
Hello,

Thanks, We will take a look into this. Have you fixed this bug in the 
templates. If so could you please attach a patch.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 12:32