how to include stored procedures with Entity Framework Reverse POCO Generator version 2.14.3

只谈情不闲聊 提交于 2019-12-12 02:14:45

问题


I am using the Entity Framework Reverse POCO Generator version 2.14.3 and I would like to include only stored procedures with name starts "usp_CMT_update*" in Apps schema. I used default settings for stored proocedure in the .tt file but only some of them were generated. I also tried regex pattern but still didn't get the stored proc generated. Please help. Thanks.

// Stored Procedures *****************************************************
// Use the following regex filters to include or exclude stored procedures
StoredProcedureFilterExclude = null;
StoredProcedureFilterInclude = null;

//StoredProcedureFilterInclude = New regex("^usp_cmt*");


回答1:


It turns out that all the stored procedures are created in the DataContext class. If the stored procedure return records, there will be an object property with stored procedure name suffixed with ReturnModel.



来源:https://stackoverflow.com/questions/36639876/how-to-include-stored-procedures-with-entity-framework-reverse-poco-generator-ve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!