|
using System;
using XamlIoc;
namespace MyLib
{
/// <summary>Dummy persistance service, picking entities from the resources.</summary>
public class ResourcePersistenceService : IPersistenceService
{
#region IPersistenceService Members
T IPersistenceService.LoadEntity<T>(int entityID)
{
return ObjectFactory.GetObject<T>(entityID.ToString());
}
void IPersistenceService.Update<T>(T entity)
{
throw new NotImplementedException();
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Vincent-Philippe is a Senior Solution Architect working in Montreal (Quebec, Canada).
His main interests are Windows Azure, .NET Enterprise suite (e.g. SharePoint 2013, Biztalk Server 2010) & the new .NET 4.5 platforms.