问题
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