Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write the POCO header And Writes optional base classes doesn't work for SPs #490

Open
Athuruga opened this issue Feb 22, 2019 · 1 comment

Comments

@Athuruga
Copy link

Athuruga commented Feb 22, 2019

I would like to add a using statement for some of my Stored procedures and for those I would like to add a base class.

Following Functions are ignored for SPs:

// This method will be called right before we write the POCO header.
  Action<Table> WritePocoClassExtendedComments = t =>

// Writes optional base classes
  Func<Table, string> WritePocoBaseClasses = t =>

// Writes any boilerplate stuff inside the POCO class
  Action<Table> WritePocoBaseClassBody = t =>

What can I do to achieve this?

Another question related to SPs which are not working for me:
// Override generation of return models for stored procedures that return entities.
I have 2 SPs which will return the same result set (outcome of a View) if I try to assign them
(like:

StoredProcedureReturnTypes.Add("UspFilterQryClientInfoByAccount", "QryClientInfoResult");
StoredProcedureReturnTypes.Add("UspFilterQryClientInfoByCustomer", "QryClientInfoResult");

to the Entity of the View QryClientInfoResult I get the error:

Error		Compiling transformation: The name 'StoredProcedureReturnTypes'
does not exist in the current context.

I'm using VS 2017, SQL Server 2012 and the latest Poco Generator.

@sjh37
Copy link
Owner

sjh37 commented Feb 25, 2019

The merging of duplicate result sets will be covered under cases #37 and #265. I will get to it, but I've promised a lot of people I am concentrating on EF 7 core version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants