namespace DevLeap.Linq.Architecture.NTier.DataLayer.LinqToXml {
public abstract class BaseDal<TEntity, TEntityList, TKey>:
IDal<TEntity, TEntityList, TKey>
where TEntity : BaseEntity, new()
where TEntityList : IEnumerable<TEntity> {
private XElement _northwindXml;
protected XElement NorthwindXml {
	get { return (this._northwindXml); }
}

protected BaseDal() {
	_northwindXml = XElement.Load(XmlDataSourcePath);
}

protected void Save() {
	this.NorthwindXml.Save(XmlDataSourcePath);
}

#region IDal<TEntity,TEntityList,TKey> Members
// ... Kd vynechn ...
#endregion
}
}
