-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Changed **Warning** This version brings many breaking changes. - Default static builder constructor is not generated by default anymore. - To enable it you have to use `generateStaticPropertyForBuilderCreation: true` either globally or on any builder level. - Changed `defaultStaticCreator` to `generateDefaultBuildMethod` to better reflect the intention. - Removed generating the namespace of an entity that is build by a builder to handle edge cases. - It shouldn't generate any regression, but it's a breaking change anyway. - **Improved performance 3x**
- Loading branch information
Showing
8 changed files
with
46 additions
and
595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Tests/Buildenator.IntegrationTests.Source/Attributes/MakeBuilderAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
namespace Buildenator.IntegrationTests.Source.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class, Inherited = false)] | ||
public sealed class MakeBuilderAttribute : Attribute | ||
{ | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Tests/Buildenator.IntegrationTests.Source/Builders/FakeBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Buildenator.IntegrationTests.Source.Attributes; | ||
|
||
namespace Buildenator.IntegrationTests.Source.Builders | ||
{ | ||
[MakeBuilder] | ||
internal partial class FakeBuilder | ||
{ | ||
} | ||
} |
Oops, something went wrong.