You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TABLE Some_Table
(
ID INTEGER NOT NULL PRIMARY KEY,
Some_Value VARCHAR(50) CHARACTER SET UTF8 NOT NULL
}
a mapped POCO class:
public partial class SomeTable
\{
#⁠region Primitive Properties
public virtual int ID
\{
get;
set;
\}
public virtual string SomeValue
\{
get;
set;
\}
}
The following statement produces an ArgumentNullException saying that "Value cannot be null. Parameter name: key":
using (var context = new MyContext())
{
var maxID = context.SomeTable.Max(st => (int?)http://st.ID) ?? 0;
}
Submitted by: Jeldrik Hornschild (jeldrik)
If you have Table:
CREATE TABLE Some_Table
(
ID INTEGER NOT NULL PRIMARY KEY,
Some_Value VARCHAR(50) CHARACTER SET UTF8 NOT NULL
}
a mapped POCO class:
}
The following statement produces an ArgumentNullException saying that "Value cannot be null. Parameter name: key":
using (var context = new MyContext())
{
var maxID = context.SomeTable.Max(st => (int?)http://st.ID) ?? 0;
}
Commits: 046b16a
The text was updated successfully, but these errors were encountered: