When ever we save anything, the very first time we call entityManager.SaveChanges, it take a long time. After checking out the log files, I notices these two entries.
Unable to locate an implementation of: IdeaBlade.EntityModel.Server.IEntityServerSaving
Unable to locate an implementation of: IdeaBlade.EntityModel.Server.IEntityServerSaved
Could this be why it is taking long time to save? Also, how do you implement these because I added them to my save class and I still received these messages?
Here is what I added:
Added IEntityServerSaving, IEntityServerSaved to my Save Class
public class SavingService : EntityBaseService, IEntityServerSaving, IEntityServerSaved
Then added these 2 methods
public void OnSaving(EntityServerSavingEventArgs e)
{
if (!e.Principal.Identity.IsAuthenticated)
{
e.Cancel = true;
}
}
public void OnSaved(EntityServerSavedEventArgs e)
{
}