protected override void ResolveIds(int currentModuleId)
{
base.ResolveIds(currentModuleId);
bool save = false;
// now the Unique Id's
// Does this ItemVersion exist in my db?
using (IDataReader dr = DataProvider.Instance().GetItemVersion(this.ItemVersionIdentifier, this.PortalId))
{
if (dr.Read())
{
// this item already exists
// update some stuff???
}
else
{
// this version does not exist.
this.ItemId = -1;
this.ItemVersionId = -1;
this.ModuleId = currentModuleId;
save = true;
}
}
if (save)
{
this.Save(this.RevisingUserId);
}
}