Thanks for reply!
After I added RelevantToUserType attribute to the code, I got an exception on EnsureCreateStore method call. I've removed it and still got nothing in console.
I tried static datatype creator, generated another type
Thank you!
After I added RelevantToUserType attribute to the code, I got an exception on EnsureCreateStore method call. I've removed it and still got nothing in console.
I tried static datatype creator, generated another type
[AutoUpdateble()]
[DataScope("public")]
[RelevantToUserType("Developer")]
[DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
[ImmutableTypeId("f42be12c-2951-4822-8777-413bd774a29a")]
[KeyTemplatedXhtmlRenderer(XhtmlRenderingType.Embedable, "<span>{label}</span>")]
[KeyPropertyName("Id")]
[Title("City")]
[LabelPropertyName("Title")]
[Caching(CachingType.Full)]
public interface City : IData, ILocalizedControlled, IProcessControlled
{
[ImmutableFieldId("44b7c8b9-714a-464f-952c-708fec42f727")]
[FunctionBasedNewInstanceDefaultFieldValue("<f:function name=\"Composite.Utils.Guid.NewGuid\" xmlns:f=\"http://www.composite.net" +
"/ns/function/1.0\" />")]
[StoreFieldType(PhysicalStoreFieldType.Guid)]
[NotNullValidator()]
[FieldPosition(-1)]
Guid Id { get; set; }
[ImmutableFieldId("b3ef8052-001c-4185-a3c2-64bd0736c7a4")]
[StoreFieldType(PhysicalStoreFieldType.String, 128)]
[NotNullValidator()]
[FieldPosition(0)]
[StringSizeValidator(0, 128)]
[DefaultFieldStringValue("")]
string Title { get; set; }
}
It also doesn't shows in console after application restart. Does it matter if I put both types in standalone assembly and reference it in my CompositeC1 project. Maybe I have to mention this assembly in config files?Thank you!