C# Class Solutionizing.DynamicDemo.Data.XmlDiscountRepositoryBase

Inheritance: IDiscountRepository
Exibir arquivo Open project: dahlbyk/Presentations

Protected Properties

Property Type Description
discounts Discount>.Dictionary

Public Methods

Method Description
GetAll ( ) : IEnumerable
GetByCode ( string code ) : Discount

Protected Methods

Method Description
GetDiscounts ( System.Xml.Linq.XDocument doc ) : IEnumerable
XmlDiscountRepositoryBase ( System.Xml.Linq.XDocument doc ) : System.Collections.Generic

Method Details

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

GetByCode() public method

public GetByCode ( string code ) : Discount
code string
return Discount

GetDiscounts() protected abstract method

protected abstract GetDiscounts ( System.Xml.Linq.XDocument doc ) : IEnumerable
doc System.Xml.Linq.XDocument
return IEnumerable

XmlDiscountRepositoryBase() protected method

protected XmlDiscountRepositoryBase ( System.Xml.Linq.XDocument doc ) : System.Collections.Generic
doc System.Xml.Linq.XDocument
return System.Collections.Generic

Property Details

discounts protected_oe property

protected Dictionary discounts
return Discount>.Dictionary