I am creating a web application using .NET. I am new to VB and to .NET.I need to create functions which add my business classes to the database. Is it a general practice to use static functions(using the shared keyword) in VB .NET? Then there is no need to instantiate the class when I use the function.
eg: There is a class Customer which has several attributes. I include a static function Add in customer which adds a customer to the database. A call to Add would look like this :
Customer.Add(obj)
obj is a Customer object
eg: There is a class Customer which has several attributes. I include a static function Add in customer which adds a customer to the database. A call to Add would look like this :
Customer.Add(obj)
obj is a Customer object