I'm using the new version of the DotConnect (6.0.58)
I have a simple table (MyTable) with two fields:
ID -> Integer (sequence)
NAME -> String
If I use the EntityFramework and I use this code:
Code: Select all
Context ctx = new Context();
MyTable t = new MyTable();
t.NAME = "Test";
ctx.MyTables.Add(t);
ctx.SaveChanges();
Console.Writeline(t.ID);
After the "SaveChanges", the ID is still 0 (zero). Why doesn't EntityFramework load it?
If I look into the DB, the new value is saved and the ID is se correclty (the first time, on the Oracle DB there is a single row with ID equals 1 and NAME is Test.