<br /> public interface ICountryDataService<br /> {<br /> void CountryDataService_Save(ICountry country);<br /> }<br />
<br /> class CountryDataService : DataServiceBase, ICountryDataService<br /> {<br /> public CountryDataService()<br /> {<br /> }<br /> <br /> <br /> public CountryDataService(IDbTransaction txn)<br /> : base(txn)<br /> {<br /> }<br /> <br /> public void CountryDataService_Save(ICountry country)<br /> {<br /> Throw Not Implemented Exception;<br /> }<br /> <br /> }<br />
<br /> public static class DataServiceContainer<br /> {<br /> public static void InitializeContainer(IUnityContainer container)<br /> {<br /> if (container == null)<br /> throw new ArgumentNullException("container"); <br /> container.RegisterType<ICountryDataService, CountryDataService>();<br /> }<br /> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)