Looking at this line in the Settings.ttincludestring CheckNullable(Column col){ string result=”"; if(col.IsNullable && col.SysType !=”byte[]” && col.SysType !=”string”) result=”?”; return result;}It describes how it determines if the colum is nullable based on requirements and returns either “” or “?” to the generated code.Now I’m not too familiar with the ? nullabe type operator but from what I can see a cast is required.For instance, if I have a nullable integer MySQL column and I generate the[...]
Bu yazı alıntıdır. Yazının orjinal adresi aşağıda belirtilmiştir.
Yazının devamını okumak için buraya tıklayınız…