Using SQL Server 2012 -
Field Definition Example in SQL was a numeric (9) field that was set to NULL when inserted to the Table by an external Process
In the Model I have added the FLD Value NULL triple along with a FLD NULL NULL Triple
I then added a State to the Field with the NULL Value and added the Entity SET SelectNull to the Entity
Created a view that Selects the SET SelectNull but then when the source is Generated for WIN C and for C#
I can obviously override the SQL and do an Exec SQL - but wondered why Using a Select Set on the View doesn't seem to generate what I expect or what I am doing wrong
"SELECT T1.GTCAckId, T1.GTCStatus, T1.GTCGTID, T1.GTCErrorMessage, "
"T1.GTCDealType, T1.GTCCashAccountID, T1.GTCSettlementDate, "
"T1.DateCreated, T1.GTCFundID, T1.GTCClientID, T1.GTCCounterpartyID, "
"T1.GTCQuantity, T1.GTCInvestmentID, T1.GTCTradeID, T1.GTCTransactionID, "
"T1.GTCPrice, T1.GTCActionCode, T1.GTCStrategyID, T1.GTCTradeDate, "
"T1.GTCTransactionIndicator, T1.FundViewSeq "
"FROM GTCAckResponse T1 "
"WHERE "
"( ( T1.GTCAckId > ? ) ) AND "
"( ( T1.FundViewSeq < 1 ) ) "
"ORDER BY T1.GTCAckId "
;
the NULL Selection is not Generated