![]() THIS OUT IS FROM MY SQL STORED PROCE NOT WITH OBJECTDATASOURCE OUT PARAMETER. Public UserMasterDT UpdateUserWithTransaction(UserMasterDT tempuser) HERE I AM PASSING UserMasterDT AS IN AND OUT ![]() DO NOT PASS SEPERATE PARAMETER AND OUT VARAIBLE. Now, IN U R BLL In update method, pass and return UserMasterDT as input and output. ![]() NOTICE THERE IS NO ANY OUTPUT PARAMTER HERE I am binding objectdatasource to formview for update uperation.Set objectdatasource as follows : Here set this prop as DUMMY output variable, that u used everywhere to get output value Here is solution and it is working for me for update operation then delete far easier than update :įor Example : I am passing paramter for Usermaster table : UserMasterDT : public UserMasterDT(int userid, int roleid, string Firstname, string ) If I do not use the DataObjectTypeName, then I have to place all the method parameters in the ObjectDataSource and change the methods on the data/business object to match, this seems like a bad design choice because as the Employee object changes I will have to update each of these methods. To clarify, I want to use the method signature on my data/business object as shown above, however if I try to allow an Employee object to be passed into some of the methods using DataObjectTypeName, then I seemingly lose the ability to have some methods take just an integer id for instance. If this is not possible, what is the recommended alternative architecture? How do I get the objectdatasource to use the Delete method with the parameter that is not an Employee object? If I have an ObjectDataSource setup like: Īnd a data/business object with methods like: public class EmployeeDB
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |