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

"Sequence contains no elements" error on fresh database #1

Open
GarethElms opened this issue Jun 12, 2011 · 3 comments
Open

"Sequence contains no elements" error on fresh database #1

GarethElms opened this issue Jun 12, 2011 · 3 comments

Comments

@GarethElms
Copy link

Hi, I ran script.sql to create the database and fired up the app. Immediately got the linq error above on the SQL : "SELECT [BudgetPeriodId], [Description], [FromDate], [ToDate] FROM [BudgetPeriods] ". Stack trace is :

Infrastructure\PetaPoco.cs:840
\Handlers\HomeIndexHandler.cs:25
\Controllers\FrontController.cs:57
Controllers\FrontController.cs:24

I think this is just because there is no data to start with

@schotime
Copy link
Owner

Hey Gareth,
The app is not currently in a good working state at the moment. Was experimenting with some front controller approaches.
I'll try and get back onto it in the next couple of weeks.
If you have any questions about building an app using petapoco let me know.
Adam

@GarethElms
Copy link
Author

Thanks Adam, I'll just browser the source code for now

Just so you know, I got a bit further running the app, InsertInitialData() fired but then got error "Invalid column name 'Version'." because Version is present on the Expense poco but not in the script.sql.

@schotime
Copy link
Owner

Ahhh. Coool.
Excellent.

On Sun, Jun 12, 2011 at 7:08 PM, GarethElms <
reply@reply.github.com>wrote:

Thanks Adam, I'll just browser the source code for now

Just so you know, I got a bit further running the app, InsertInitialData()
fired but then got error "Invalid column name 'Version'." because Version is
present on the Expense poco but not in the script.sql.

Reply to this email directly or view it on GitHub:

#1 (comment)

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