Converting IPublishedContentProperty to IPublishedProperty
Hi everyone,
I'm moving an old package to umbraco 7 and I have an issue with IPublishedContentProperty
interfaces.
It seems it is changed to IPublishedProperty, which is quite different to implement
Can someone give me some advice?
Here's my old code
public class BlogProperty : IPublishedContentProperty
{
public string Alias
{
get;
private set;
}
public object Value
{
get;
private set;
}
public System.Guid Version
{
get;
private set;
}
public BlogProperty(string alias, object value)
{
Alias = alias;
Value = value;
Version = System.Guid.NewGuid();
}
}
that throws an error on compile (PublishedContentProperty seems to not exist anymore)
If you need Version (on the property) respond to this issue, but otherwise I think you'll be good just by removing version and change from Alias to PropertyTypeAlias.
Converting IPublishedContentProperty to IPublishedProperty
Hi everyone,
I'm moving an old package to umbraco 7 and I have an issue with IPublishedContentProperty interfaces.
It seems it is changed to IPublishedProperty, which is quite different to implement
Can someone give me some advice?
Here's my old code
that throws an error on compile (PublishedContentProperty seems to not exist anymore)
Thank you
If you need Version (on the property) respond to this issue, but otherwise I think you'll be good just by removing version and change from Alias to PropertyTypeAlias.
http://issues.umbraco.org/issue/U4-4773
"Breaking change. Alias is now PropertyTypeAlias and Version is gone because it was meaningless for properties (returned Guid.Empty)"
Thank you Jonas
is working on a reply...