C#:How to create a common class with AN INSERT method for many FORMS
-
HI , i want to know how to create a class which has an INSERT method for several forms. for example: i have 3 forms , FORM1,FORM2 FORM3. FORM1 has 3 textboxes. FORM2 has 7 textboxes . FORM3 has 20 textboxes. Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms. i had already done this task but seperate INSERT methods for individual forms. now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task. can anybody give me solution. thanks
KSSK
-
HI , i want to know how to create a class which has an INSERT method for several forms. for example: i have 3 forms , FORM1,FORM2 FORM3. FORM1 has 3 textboxes. FORM2 has 7 textboxes . FORM3 has 20 textboxes. Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms. i had already done this task but seperate INSERT methods for individual forms. now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task. can anybody give me solution. thanks
KSSK
kssknov wrote:
i want to know how to create a class which has an INSERT method for several forms.
It sounds like you are asking how to create a DAL. * What is a DAL? (Part 1)[^] * What is a DAL? (Part 2)[^] * What is a DAL? (Part 3)[^] * What is a DAL? (Part 4)[^]
Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog