Type safe objectdatasources

泄露秘密 提交于 2020-01-06 18:55:49

问题


Is there any way to make asp.net objectdatasources to be type safe. Meaning I get a compile time error if parameters or datatypes change during refactoring?

Does anyone know any other method? Or can recommend any other way to do it? I find manual binding tedious. What is other people doing?

Thanks


回答1:


No, all binding is with strings holding property/column names.

Maybe consider a Test project (Unit testing). That would be my answer to the last part.



来源:https://stackoverflow.com/questions/4774951/type-safe-objectdatasources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!