问题描述
我正在使用实体框架反向POCO生成器2.14.3版本,并且我想仅包含存储过程,名称在Apps模式中启动usp_CMT_update *。我在.tt文件中使用了存储过滤的默认设置,但只生成了其中的一些。我也尝试了正则表达式,但仍然没有获得存储过程生成。请帮忙。谢谢。
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 =新的正则表达式(^ usp_cmt *);
//StoredProcedureFilterInclude = New regex("^usp_cmt*");
推荐答案
事实证明,所有的存储过程都是在DataContext类中创建的。如果存储过程返回记录,将存在一个对象属性,存储过程名称后缀为ReturnModel。
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.
这篇关于如何使用Entity Framework反向POCO Generator版本2.14.3包含存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!