Comments (10)
I resolved it in a way that always first set is taken if specified in tt file. Will make a pull request in a month.
from entityframework-reverse-poco-code-first-generator.
I fully understand. It's actually SQL Server that tells me what will be returned, and where there are conditionals, for some reason it tells me there will be two or more result sets returned, even though in reality there could be only one.
As some results sets returned may be identical, they could in fact contain valid data. So what will happen is I will add an array to the settings you can edit so you can opt in certain stored procs to be merged if you know that is safe to do so.
Time scales - This is low priority, and will happen sometime after I have completed adding support for EF .Net Core version. Another biggie, is to add support for Oracle, MySql, Postgres, etc. However, I don't mind injecting quick wins into the generator, which this one would be. However, I've promised everyone that I'm concentrating on EF core support.
from entityframework-reverse-poco-code-first-generator.
+1
from entityframework-reverse-poco-code-first-generator.
Or it would be nice to specify in the tt to only return 1 result set for procs.
from entityframework-reverse-poco-code-first-generator.
Any update on this?? Or, can be specified in tt to include only first one?
from entityframework-reverse-poco-code-first-generator.
+1
from entityframework-reverse-poco-code-first-generator.
Any updated workaround for this? The only thing I've found to work reliably is to just separate my stored procedure that contains IF/ELSE SELECTs into separate stored procedures that map to the same result set entity, but that's not ideal...
from entityframework-reverse-poco-code-first-generator.
Understood, thanks for the quick reply. And I realize that you're just dealing with whatever SQL Server tells you about the stored procedure. It's unfortunate that SQL Server appears to be wrong in this case. The setting addition to merge result sets for specific stored procedures would be great. In the meantime, at least there are some other ways to workaround the issue.
from entityframework-reverse-poco-code-first-generator.
hello,
please find my temporary solute that I presented in Issue #265
from entityframework-reverse-poco-code-first-generator.
I have included a new setting flag which defaults to true
. This will cause the generator to inspect multiple result sets to see if they are all identical. If they are all identical the duplicates will be removed leaving a single model.
Settings.MergeMultipleStoredProcModelsIfAllSame = true;
This will be in the next release.
from entityframework-reverse-poco-code-first-generator.
Related Issues (20)
- Add support for Informix DB2
- HasTrigger is not working with synonymous tables HOT 7
- Error in generated file : ; expected HOT 1
- Entity Framework query timeout but SQL is instant. HOT 2
- Add support for EF Core 8 HOT 1
- Query Filters (Global Query Filters) HOT 1
- Add "IsSynonym" property to Table class HOT 3
- edmx not refreshing after add stored procedure HOT 1
- Table wich name contains a dot gets ignored HOT 1
- Unable to call scalar function
- Error when using connection string with Authentication property. HOT 1
- HasDefaultValue() HOT 2
- Stored proc with multiple returns HOT 2
- Selecting from temporary table HOT 2
- Add more Data annotations HOT 1
- Selecting from temporary table returning "int" instead of the result table. HOT 2
- Sqlite Code Generation fails HOT 3
- how to add interceptor? HOT 3
- Add QuerySplittingBehavior
- allow multiple enums from a single table HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entityframework-reverse-poco-code-first-generator.