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 7933559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:22:21+00:00 2026-06-03T21:22:21+00:00

This worked with Firebird .NET Provider 2.6.5: using (var context = new SetupContext()) {

  • 0

This worked with Firebird .NET Provider 2.6.5:

using (var context = new SetupContext())
{
    _maxApplicationID = context.Application.Max(a => (int?)a.ID) ?? 0;
}

Table Mapping:

<!-- SSDL content -->
<edmx:StorageModels>
  <Schema Namespace="Model1.Store" Alias="Self" Provider="FirebirdSql.Data.FirebirdClient" ProviderManifestToken="2.5" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
    <EntityContainer Name="Model1StoreContainer">
      <EntitySet Name="APPLICATION" EntityType="Model1.Store.APPLICATION" store:Type="Tables" Schema="Firebird" />
    </EntityContainer>
    <EntityType Name="APPLICATION">
      <Key>
        <PropertyRef Name="ID" />
      </Key>
      <Property Name="ID" Type="int" Nullable="false" />
      <Property Name="NAME" Type="varchar" Nullable="false" MaxLength="50" />
      <Property Name="DISPLAY_TEXT" Type="varchar" MaxLength="255" />
      <Property Name="ARGUMENTS" Type="varchar" MaxLength="255" />
      <Property Name="PATH" Type="varchar" MaxLength="255" />
      <Property Name="TYPE" Type="char" MaxLength="1" />
    </EntityType>
  </Schema>
</edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
  <Schema Namespace="Model1" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
    <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
      <EntitySet Name="Application" EntityType="Model1.Application" />
    </EntityContainer>
    <EntityType Name="Application">
      <Key>
        <PropertyRef Name="ID" />
      </Key>
      <Property Name="ID" Type="Int32" Nullable="false" />
      <Property Name="Name" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="false" />
      <Property Name="DisplayText" Type="String" MaxLength="255" Unicode="true" FixedLength="false" />
      <Property Name="Arguments" Type="String" MaxLength="255" Unicode="true" FixedLength="false" />
      <Property Name="Path" Type="String" MaxLength="255" Unicode="true" FixedLength="false" />
      <Property Name="Type" Type="String" MaxLength="1" Unicode="true" FixedLength="true" />
    </EntityType>
  </Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
  <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
    <EntityContainerMapping StorageEntityContainer="Model1StoreContainer" CdmEntityContainer="Entities">
      <EntitySetMapping Name="Application"><EntityTypeMapping TypeName="Model1.Application"><MappingFragment StoreEntitySet="APPLICATION">
        <ScalarProperty Name="ID" ColumnName="ID" />
        <ScalarProperty Name="Name" ColumnName="NAME" />
        <ScalarProperty Name="DisplayText" ColumnName="DISPLAY_TEXT" />
        <ScalarProperty Name="Arguments" ColumnName="ARGUMENTS" />
        <ScalarProperty Name="Path" ColumnName="PATH" />
        <ScalarProperty Name="Type" ColumnName="TYPE" />
      </MappingFragment></EntityTypeMapping></EntitySetMapping>
    </EntityContainerMapping>
  </Mapping>
</edmx:Mappings>

Now I have upgraded to version Firebird .NET Provider 2.7.5 and I’m getting an ArgumentNullException saying that “Value cannot be null. Parameter name: key”.

Is this a changed behaviour in 2.7.5 or did somthing went wrong with the update. If this is a changed behaviour: How can I get the maximum value of a column?

  • 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-06-03T21:22:23+00:00Added an answer on June 3, 2026 at 9:22 pm

    If done as Mark Rotteveel suggested. This is the link to the ticket in the firebird bug database: http://tracker.firebirdsql.org/browse/DNET-429

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

Sidebar

Related Questions

In my sample application this worked perfect <s:iterator value=menuGroup var=menu> <s:textfield value=%{#menu.name}></s:textfield> </s:iterator> but
I am using executeUpdate(query) to insert a row into a Firebird database table and
Hello (this is a long post sorry), I am writing a application in ASP.NET
Why do this work? int *var; while(scanf(%d, &var) && *var != 0) printf(%d \n,
http://jsfiddle.net/tgWKZ/ This worked in the older version of jQuery. Only thing that is stopping
This worked fine with 1.4. var ogimagetag = $('meta[property=og:image]').attr('content'); gives me Uncaught Syntax error,
I have C# application we've been coding in ADO.NET. I've been using the IDbCommand
I'm trying to export my java application to a Runnable Jar file. This worked
This is my old code: var destinctList = HoldingsList.DistinctBy(x => new { x.ClientName, x.ProductName
At the beginning this worked fine: $ rake cucumber:all But then $ script/plugin install

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.