microsoft / sqlmanagementobjects

Sql Management Objects, an API for scripting and managing SQL Server and Azure SQL Database
Other
132 stars 22 forks source link

Move reflection and dynamic code invocation out of SqlSmoObject #134

Open shueybubbles opened 1 year ago

shueybubbles commented 1 year ago

Start with the implementation of InitObjectsFromEnumResultsRec

Can it be a static function in separate class altogether?

We want to isolate the Sfc and reflection dependencies into a new code file whose implementation could be replaced by a C# source generator in the future. The generated code would use the Sfc attributes at compile time to build the method lookup tables.