How do I register my custom collection class in the SDE?

I have an interface IEventedList : IList and its implementation EventedList.

Is there any way to make SDE to use them as collection associations? So that they will be shown as a aggregation/composition association?

In other words, if I have the following code:

public class A
{
public IEventedList Children { get; set; }
}

public class B
{
}

I want to see the following on my diagram:

A <>---- B

Thanks,
Gena

Hello Gena,

You can specify the collect type under the Options dialog (Modeling > Options > Visual Studio > Generate Code (see attached pic). If there are any further inquiry, please do not hesitate to contact me.

Best regards,
Rain


Register collection.png