G
Guest
In ASP.NET if am writing a class for Datalayer ,
Public Class XXX{
// I am createing a class file and write all database activity methods there
}
OR
public class XXX : System.ComponentModel.Component{
// I am Creating a component and write all all database activity methods there
}
What is the difference?
The only difference i find is in the second case class inherits some class. and i can drag and drop data controls,
which otherwise in the first case i have to write manually.
Can someone guide me the technical difference and which approach i should take.
Regards,
Public Class XXX{
// I am createing a class file and write all database activity methods there
}
OR
public class XXX : System.ComponentModel.Component{
// I am Creating a component and write all all database activity methods there
}
What is the difference?
The only difference i find is in the second case class inherits some class. and i can drag and drop data controls,
which otherwise in the first case i have to write manually.
Can someone guide me the technical difference and which approach i should take.
Regards,