Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys

how can i create global class for insert data into database.

What I have tried:

for example, the class use for Register user contact, Submit customer order and etc.

register form:
C#
name.text
family.text
cellphone.text
address.text


order form:
product.text
qty.text
datetime.text


all of these insert into database with a class.

thanks everyone

Mention:

These are(register action and submit order action) separate and operate independently
Posted
Comments
Suvendu Shekhar Giri 24-Oct-16 3:50am    
What those text files have to do with your requirement?
versers777 24-Oct-16 4:03am    
i want a class for insert data with:
register parameters and submit orders parameters.
for example, for register form we need to get name.text, family.text cellphone.text and address.text
or for submit order form we need product.text, qty.text and datetime.text.
We dont want define a class of fixed parameters.
johannesnestler 24-Oct-16 9:10am    
I have no clue what you are talking about??? "I want a class" .... we don't want define a class of fixed Parameters??? Please try to formulate your problem without assuming we can read your mind - and try to use common technical terms - i never heard of a "class of fixed Parameters"... Start with answering "what's your Problem"? Create a class? a form? a database?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900