You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems, we need to repeat subtypes when try to extend union model
[UnionType(typeof(Result1))]
[UnionType(typeof(Result2))]
[UnionType(typeof(Result3))]
[UnionType(typeof(Result4))]
public partial class DataAccessUpdateResult
{
}
[UnionType(typeof(Result1))]
[UnionType(typeof(Result2))]
[UnionType(typeof(Result3))]
[UnionType(typeof(Result4))]
[UnionType(typeof(Result5))]
[UnionType(typeof(Result6))]
[UnionConverterFrom(typeof(DataAccessUpdateResult))]
public partial class BusinessLogicUpdateResult
{
}
Maybe it will be more convenient to not repeat it and have ability to describe the type we want to extend (and also have implicit converting from it)
[UnionType(typeof(Result1))]
[UnionType(typeof(Result2))]
[UnionType(typeof(Result3))]
[UnionType(typeof(Result4))]
public partial class DataAccessUpdateResult
{
}
[UnionType(typeof(Result5))]
[UnionType(typeof(Result6))]
[ExtendUnionFrom(typeof(DataAccessUpdateResult))]
public partial class BusinessLogicUpdateResult
{
}
The text was updated successfully, but these errors were encountered:
Seems, we need to repeat subtypes when try to extend union model
Maybe it will be more convenient to not repeat it and have ability to describe the type we want to extend (and also have implicit converting from it)
The text was updated successfully, but these errors were encountered: