CatFactory
CatFactory copied to clipboard
CatFactory Scaffolding Engine
Add extension methods to allow reduce syntax on create class definitions. Proposed design: ```csharp var classDefinition = ClassDefinition .New(AccessModifier.Public, "EmployeeController", "ShanghaiCat.API.Controllers", baseClass: "ControllerBase") .IsPartial() .AddDefaultCtor() ; ``` Output: ```csharp namespace...
Add metadata attributes in `AddAutomaticProperty` extension method.
Remove `FirstResultSetForObject`, this definition is obsolete and use `ResultSet` deinition.
Add extension method to refact a record definition from anonymous types, using as example the `RefactRecord` method in [DefinitionsExtensions](https://github.com/hherzl/CatFactory.TypeScript/blob/master/CatFactory.TypeScript/ObjectOrientedProgramming/DefinitionsExtensions.cs).
Add extension method to refact class definition from anonymous types, using as example the `RefactClass` method in [DefinitionsExtensions](https://github.com/hherzl/CatFactory.TypeScript/blob/master/CatFactory.TypeScript/ObjectOrientedProgramming/DefinitionsExtensions.cs).
Add `IndentationStyle` enum, [following this guide](https://en.wikipedia.org/wiki/Indentation_style). Also add a property in `CodeBuilder` class.
Add `ClassDefinition` method in `ToRecordDefinition`.
Add `ToRecordDefinition` method in `ClassDefinition`.
Add `CatFactory.SqlServer.DatabaseImportSettings` definition in the Core.
In order to use `AddColumnForTables` extension method, there is a hack: ```csharp dynamic importBag = new ExpandoObject(); importBag.ExtendedProperties = new List(); db.AddColumnForTables(new Column { Name = "Active", Type = "bit",...