select maximum value for a property is borken ---------------------------------------------
Key: DNET-429 URL: http://tracker.firebirdsql.org/browse/DNET-429 Project: .NET Data provider Issue Type: Bug Components: Entity Framework support Affects Versions: 2.7.5 Environment: VS 2010, EF 4.0, POCO Entity Generator 1.1 Reporter: Jeldrik Hornschild Assignee: Jiri Cincura 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: 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?)st.ID) ?? 0; } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider