Possible Duplicate:
Why use partial classes?
I am new to partial classes and was wondering if someone could give me a big picture of why I would use them and what advantage I would gain in the process.
What i need to do is, i am saving my data from a windows form to multiple tables say 5 tables. And i want to reuse the code some where else.
I have made a DAL class, now how can i implement this partial class to save the data?
Thanks for the support in advance..:)
I have created something like this: is it good to use?
class clsDAL
{
public partial class SaveData
{
public void SpClient()
{
}
}
public partial class SaveData
{
public void SpCountry()
{
}
}
public partial class SaveData
{
public void SpDuration()
{
}
}
public partial class SaveData
{
public void SpProfile()
{
}
}
public partial class SaveData
{
public void SpWorkload()
{
}
}
}