﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Generic Nullable Gives Compiler Error</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 19:42:35 GMT</lastBuildDate><ttl>20</ttl><item><title>Generic Nullable Gives Compiler Error</title><link>http://forum.strataframe.net/FindPost5539.aspx</link><description>I used the Customize Property of the Business Object Mapper to try and set the properties of a Null Field.&amp;nbsp;&amp;nbsp; Here is the error that I get:&lt;/P&gt;&lt;P&gt;Error&amp;nbsp;2&amp;nbsp;Type argument 'String' does not satisfy the 'Structure' constraint for type parameter 'T'&amp;nbsp;</description><pubDate>Wed, 03 Jan 2007 08:51:38 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>RE: Generic Nullable Gives Compiler Error</title><link>http://forum.strataframe.net/FindPost5544.aspx</link><description>That's almost correct... the Use Nullable Generic option can only be used with value types that are not nullable (structures, integers, doubles, datetimes, etc.).&amp;nbsp; The System.String data type is a reference type, but it still cannot be cast to DBNull.Value.&amp;nbsp; So, instead of using the Nullable Generic option, you'll most likely need to use the "Return Alternate On Null" option, which returns an alternate value if a Null value is encountered.&amp;nbsp; So, the replacement value would most likely be Nothing (or null for C#).</description><pubDate>Wed, 03 Jan 2007 08:51:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Generic Nullable Gives Compiler Error</title><link>http://forum.strataframe.net/FindPost5540.aspx</link><description>I think I figured it out.&amp;nbsp;&amp;nbsp; The database column was a string value so that the Generic Nullable is not needed and the application "should" be able to handle because you can set the String to Null without the NUllable Call.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard</description><pubDate>Wed, 03 Jan 2007 04:53:21 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item></channel></rss>