Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7083795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:13:20+00:00 2026-05-28T07:13:20+00:00

The model: [Table(RECIPE)] public class Recipe { [Key, Column(ID), DatabaseGenerated(DatabaseGeneratedOption.None), Required] public int ID

  • 0

The model:

[Table("RECIPE")]
public class Recipe
{

    [Key, Column("ID"), DatabaseGenerated(DatabaseGeneratedOption.None), Required]
    public int ID { get; set; }

    [Column("NAME")]
    public string Name { get; set; }


    public virtual ICollection<Ingredient> Ingredients { get; set; }

}

[Table("INGREDIENTS")]
public class Ingredient
{

    [Key, Column("ID"), DatabaseGenerated(DatabaseGeneratedOption.None)]
    public int ID { get; set; }

    [Column("RECIPE"), Required]
    public int RecipeID { get; set; }

    [ForeignKey("RecipeID")]
    public virtual Recipe Recipe { get; set; }

    [Column("NAME")]
    public string Name { get; set; }

}


public class RecipeCtx : DbContext
{

    public DbSet<Recipe> Recipes { get; set; }
    public DbSet<Ingredient> Ingredients { get; set; }


}

The Controller:

    public ViewResult Index()
    {

        var ingredients = (from ing in db.Ingredients.Include(c => c.Recipe) orderby ing.ID select ing)
            .Skip(20)
            .Take(20)
            .ToList();

        return View(ingredients);

    }

The generated query:

SELECT 
"Limit1"."Extent1"."ID" AS "ID", 
"Limit1"."Extent1"."RECIPE" AS "RECIPE", 
"Limit1"."Extent1"."NAME" AS "NAME", 
"Limit1"."Extent2"."ID" AS "ID1", 
"Limit1"."Extent2"."NAME" AS "NAME1"
FROM ( SELECT FIRST (20) SKIP (20) "Extent1"."ID" AS "ID1", "Extent1"."RECIPE" AS "RECIPE", "Extent1"."NAME" AS "NAME1", "Extent2"."ID" AS "ID2", "Extent2"."NAME" AS "NAME2"
    FROM  "INGREDIENTS" AS "Extent1"
    INNER JOIN "RECIPE" AS "Extent2" ON "Extent1"."RECIPE" = "Extent2"."ID"
    ORDER BY "Extent1"."ID" ASC
)  AS "Limit1"

The exception:

{"An error occurred while executing the command definition. See the inner exception for details."}

{"Dynamic SQL Error\r\nSQL error code = -104\r\nToken unknown - line 2, column 19\r\n."}

If I remove the skip it works fine.

i’m using:

Firebird Server Version 2.5.1.26351 (the latest version)

FirebirdClient - ADO.NET Data Provider version 2.7.0.0 (the latest version)

What can I do to get around this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:13:21+00:00Added an answer on May 28, 2026 at 7:13 am

    It’s a bug in provider. Report it to tracker.firebirdsql.org.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented a custom Table Model as follows: public class MyTableModel extends AbstractTableModel
Does anyone knows how to get table name from model name? Also I want
Querying a Nested Set Model table , here's the SQL... how can this be
Is it possible to get the selected row index from my table model? My
Im trying set the single table inheritance model type in a form. So i
I have hierarchical data in a nested set model (table:projects): My table (projects): id,
How should I name a Doctrine 2 Model table row variable (e.g. url-name is
I have created a model POCO class called Recipe ; a corresponding RecipeRepository persists
Given this: create table Location( LocationId int identity(1,1) not null primary key, Address nvarchar(max)
I wanted to add a new property to one of my model (table). Basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.