I a开发者_运维知识库m using an ObectDataSorce in my asp.net C# code, with SelectMethod() that calls a method that returns List< Employee>. 
(I don't think it matters to the question, but I am displaying the data in the UI in an infragistics webdatagrid.)
I am working on UpdateMethod() now.  
I tried using Employee employee as the input parameter to the method, as I used as the parameter in the SelectMethod(), but the compiler is looking for each property in Employee broken out as a separate parameter, i.e. String Fn, String Ln, String Address1 , etc. 
Any there any shortcuts for doing this rather than creating the method with a whole long list of parameters? Or leaving out the parameters for stuff that was readonly?
You should set ObjectDataSource.DataObjectTypeName to Employee.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.objectdatasource.dataobjecttypename.aspx
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论