I am attempting to implement the interface IEntityServerSaving in a custom class. When I run in n-tier mode, I get a log event in our log file that states Unable to locate an implementation of: IdeaBlade.EntityModel.IEntityServerSaving. The code that is inside the custom class looks like :
namespace
DomainModel
{
public class EntityServerSaving : IEntityServerSaving
{
#region
IEntityServerSaving Members
public void OnSaving(EntityServerSavingEventArgs args)
{
// Custom Code Here
We are setting our manager variable using the code :
_manager = args.GetEntityManager();
In the web.config on the BOS Server we have :
<
ideablade.configuration version="5.00" updateFromDomainModelConfig="Ask">
...
<edmKeys>
<
edmKey ...>
<
probeAssemblyNames>
<
probeAssemblyName name="DomainModel"/>
<
probeAssemblyName name="..."/>
</
probeAssemblyNames>
</
edmKey>
</
edmKeys>
</
ideablade.configuration>
The class file is in the DomainModel project additionally. On the client we are overriding the OnSaving event handler, but that is just for the client side EntityManager. The only thing we are doing on the client side OnSaving override is the functionality for custom validation and trace logging.
The question(s) are, does overriding the client EntityManager affect whether or not the EntityServer class can find the IEntityServerSaving? Is there an example on how to setup the IEntityServerSaving interface that can be executed? (I couldn't find one in the tutorials) Am I missing something simple? (I am hoping it is this question :-))