CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

Factory class with property setter

220 Views
Copy Code Show/Hide Line Numbers
using WestWind.BusinessObjects;
 
namespace CompanyName
{
    public class WebStoreFactory
    {
        public static busItem GetbusItem() 
        {
            busItem ItemObject = new busItem();
            return (busItem) WebStoreFactory.SetProperties(ItemObject);
        }
 
 
        public static wwBusiness SetProperties(wwBusiness BusinessObject)
        {
            BusinessObject.ConnectType = App.Configuration.ConnectType;
            BusinessObject.ConnectionString = App.Configuration.ConnectionString;
 
            return BusinessObject;
        }
 
 
    }
}
by Matt Slay
  February 05, 2010 @ 9:36am
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate