I’m working on a LINQ to Entities project for school. I am working with a db2 database that generates key values through a generated sequence eg. INSERT INTO STUDENT VALUES(NEXT VALUE FOR STUDENT_NUM, 'Raphael', 'Joasia'); Is the there an equivalent to the NEXT VALUE operator in LINQ to Entities that will do the same or will I need to change how my database operates in regards to generating keys? I do use this sequence for generating values on several foreign key tables. If there is a way to do this it would be a huge help.
I’m working on a LINQ to Entities project for school. I am working with
Share
Unless you can generate the key itself you will need to use a stored procedure like you said. The first release of Entity Framework doesn’t handle edge case scenarios very well, even if this doesn’t seem like much of an edge case…