mamift / LinqToXsdCore

LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code and .NET Core 3.1, .NET 5+ for the code generator CLI tool).
Microsoft Public License
43 stars 15 forks source link

The content model inheritance is broken for types derived by restriction. #37

Closed rvuistin closed 1 year ago

rvuistin commented 2 years ago

Actually, for a type derived by restriction, a GetContentModel method is generated that returns a ContentModel.Default, breaking the base content model. A simple fix is to avoid the generation of the GetContentModel method.

Fixed in pull request #36