Would it be possible to generate classes for SQL Server views and (optionally) table-valued functions?
It would be nice to be able to specify list of views to generate POCO classes for. These views may be based on several tables and use SQL Server scalar functions.
BTW, are you aware of some extra "script like" content on this page https://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838 ?
Comments: I found a difference in the generated classes. When it's table-based, I see partial void InitializePartial(); and call to it from the constructor. For the view I only see properties. Why the InitializePartial() is not added when it's view based class?
It would be nice to be able to specify list of views to generate POCO classes for. These views may be based on several tables and use SQL Server scalar functions.
BTW, are you aware of some extra "script like" content on this page https://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838 ?
Comments: I found a difference in the generated classes. When it's table-based, I see partial void InitializePartial(); and call to it from the constructor. For the view I only see properties. Why the InitializePartial() is not added when it's view based class?