EntityFramework-Reverse-POCO-Code-First-Generator icon indicating copy to clipboard operation
EntityFramework-Reverse-POCO-Code-First-Generator copied to clipboard

[BUG] - 'SET FMTONLY' confusing

Open huyttq opened this issue 10 years ago • 3 comments

The line 2320 in EF.Reverse.POCO.Core.ttinclude looks very confusing. It is set ON finally but OFF is the thing we should use for generating return model if a stored procedure uses temp tables

huyttq avatar Oct 11 '16 07:10 huyttq

Have a read of https://devio.wordpress.com/2013/01/15/the-amazing-fmtonly-trick/ to see if this helps. Another interesting read http://www.sqlservercentral.com/Forums/Topic969503-338-1.aspx

With regard to FMTONLY ON/OFF, OFF/OFF, nonsense, this is the way Microsoft do it when their tools reverse engineer a SQL Server database. Strange, but works reliably.

sjh37 avatar Oct 11 '16 09:10 sjh37

Please let me know if you still think this is a bug after reading the above articles.

sjh37 avatar Oct 12 '16 08:10 sjh37

Closing this for now.

sjh37 avatar Oct 14 '16 08:10 sjh37