public ChangeLog GetChangeLog(string entityName, string token, NorthwindConfig config)
{
Token intToken;
// create an new token for the requested entity
intToken = new Token(new Identity(entityName, ""), 0, true);
// if an serialzed tokenstring passed in, deserialize and use this one
if (!((token == null) || (token.Length == 0)))
//token = (Token)XmlHelper.DeserializeXmlToObject(token, Token);
intToken = (Token)Token.DeserializeToken(token);
// get a new entity object of the requestet entity
EntityBase entity = EntityFactory.GetEntity(entityName);
// if the entityname is not supported by the connector an error will thrown
if (entity == null)
throw new Exception(string.Format(Resources.ErrorMessages_OperationNotImplementedForEntity, entityName));
// get the changelog an an entity
return entity.GetChangelog(intToken, config);
}