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
* feat: fluent lambda per default
* feat: lambda parameters for compounds
* fix: lambda method parameter names
* feat(LambdaByDefault): LambdaBuilderInfo for the FluentCollectionAttributeInfo
* fix(FluentApiInfoCreator): remove assumptions from TryGetLambdaBuilderInfoOfCollectionType
* feat: WithItem method with lambda parameter
* test(FluentLambdaCollectionClass): add expected result
* test: CanExecuteFluentLambdaCollectionClass
* feat: WithItems method with lambda parameters
* improve(Readme): feature list and acknowledgements
* chore: make FluentLambda obsolete
* fix(Readme)
* chore: replace FluentLambda with FluentMember in exmaples and tests
* chore(Storybook): NestedFluentApis example instead of FluentLambdaExample
* fix(ArrayCreator): remove semicolon in CreateCollectionFromEnumerable
* fix(ArrayCreator): add using only when needed
* test: FluentLambdaCollectionClass2
* test: FluentLambdaManyCollectionsClass and FluentLambdaManyPrivateCollectionsClass
* improve: property order in FluentLambdaManyPrivateCollectionsClass and FluentLambdaManyCollectionsClass
* fix: execution tests
* improve(CodeGenerationExecutionTests): blocks between different subtests
* test: add failing test TryBreakFluentApiClass3
* refactor(CollectionMethodCreator): cleanup
* fix: make TryBreakFluentApiClass3 test work
* chore: adjust storybook and readme
* chore: increase package version to 1.7.0
* fix: minor change
A package reference will be added to your `csproj` file. Moreover, since this library provides code via source code generation, consumers of your project don't need the reference to `M31.FluentApi`. Therefore, it is recommended to use the `PrivateAssets` metadata tag:
If you would like to examine the generated code, you may emit it by adding the following lines to your `csproj` file:
@@ -106,7 +118,7 @@ You may have a look at the generated code for this example: [CreateStudent.g.cs]
106
118
107
119
The attributes `FluentApi` and `FluentMember` are all you need in order to get started.
108
120
109
-
The attributes `FluentPredicate`, `FluentCollection`, and `FluentLambda` can be used instead of the `FluentMember` attribute if the decorated member is a boolean, a collection, or has its own Fluent API, respectively.
121
+
The attributes `FluentPredicate`and `FluentCollection` can be used instead of the `FluentMember` attribute if the decorated member is a boolean or a collection, respectively.
110
122
111
123
`FluentDefault` and `FluentNullable` can be used in combination with these attributes to set a default value or null, respectively.
Can be used instead of the `FluentMember` attribute if the decorated member has its own Fluent API. Generates an additional builder method that accepts a lambda expression for creating the target field or property.
Copy file name to clipboardexpand all lines: src/M31.FluentApi.Generator/CodeGeneration/CodeBoardActors/MethodCreation/Collections/CollectionMethodCreator.cs
+75-6
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ internal abstract class CollectionMethodCreator
Copy file name to clipboardexpand all lines: src/M31.FluentApi.Generator/CodeGeneration/CodeBoardActors/MethodCreation/Collections/CollectionMethods.cs
+5-2
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,14 @@ public BuilderMethods CreateBuilderMethods(MethodCreator methodCreator)
0 commit comments