Posted on 06/09/2016 10:47:48
Hi Gaëtan
The SetTags method was deprecated since the internal use of it has been obsoluted due to the fact we do not want to uncritically add data to the tag collection of the object and it would not keep naming. So if you still want to use it, you can add an extension method to your project with the code.
It looks like this:
public void SetTags(IDataReader values)
{
int x = 0;
while (x <= values.FieldCount - 1) {
if (this.Type == TemplateType.Razor) {
SetRawTag(values.GetName(x), values.Item(x));
} else {
SetTag(values.GetName(x), Base.ChkString(values.Item(x)));
}
x += 1;
}
}
LogToFile has been replaced by Dynamicweb.Logging package
You can access it like this:
using Dynamicweb.Logging.ILogger logger = Dynamicweb.Logging.LogManager.Current.GetLogger("YouFeatureName"){
logger.Error("some");
logger.Debug("other");
logger.Log("Etc...");
}
BR Nicolai